summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/platform/graphics/android/LayerAndroid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp
index 42104dc..16f7189 100644
--- a/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -671,7 +671,9 @@ void LayerAndroid::computeTextureSize()
// If we are under the maximum, and the layer inspected
// needs a texture less than the maxLayerSize, use the full texture.
if ((total < max) &&
- (layer->fullTextureSize() < maxLayerSize)) {
+ (layer->fullTextureSize() < maxLayerSize) &&
+ (layer->getWidth() * m_scale < TilesManager::instance()->getMaxTextureSize()) &&
+ (layer->getHeight() * m_scale < TilesManager::instance()->getMaxTextureSize())) {
IntRect full(0, 0, layer->getWidth(), layer->getHeight());
layer->m_layerTextureRect = full;
clipped = false;