From 83ee7d34ce462a2acebf0c2bf42ca52602d84df4 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Fri, 18 Mar 2011 16:32:34 -0700 Subject: [PATCH] Do not recreate textures if not needed for layers... bug:4136077 Change-Id: Ia975ac78f724450be6f36a61316c872c4d88d7a0 --- WebCore/platform/graphics/android/LayerAndroid.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp index 0f2faa05b..5d6bedd80 100644 --- a/WebCore/platform/graphics/android/LayerAndroid.cpp +++ b/WebCore/platform/graphics/android/LayerAndroid.cpp @@ -849,6 +849,9 @@ void LayerAndroid::createGLTextures() if (outsideViewport()) return; + if (m_drawingTexture && !needsScheduleRepaint(m_drawingTexture)) + return; + LayerTexture* reservedTexture = m_reservedTexture; if (!reservedTexture) reservedTexture = TilesManager::instance()->createTextureForLayer(this, m_layerTextureRect); -- 2.11.0