changeset 5056:6a2c7c339d17

RT-32403 Webkit on Pi throws many java.lang.RuntimeExceptions
author peterz
date Thu, 12 Sep 2013 12:40:49 +0400
parents 610ea3cbc099
children 45efea44f8dd
files modules/web/src/main/native/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/native/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp	Thu Sep 12 10:09:43 2013 +0200
+++ b/modules/web/src/main/native/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp	Thu Sep 12 12:40:49 2013 +0400
@@ -30,7 +30,11 @@
 #if USE(TEXTURE_MAPPER)
 namespace WebCore {
 
+#if PLATFORM(JAVA)
+static const int s_maximumAllowedImageBufferDimension = 2048;
+#else
 static const int s_maximumAllowedImageBufferDimension = 4096;
+#endif
 
 void BitmapTextureImageBuffer::updateContents(const void* data, const IntRect& targetRect, const IntPoint& sourceOffset, int bytesPerLine, UpdateContentsFlag)
 {