OSDN Git Service

Do not recreate textures if not needed for layers...
authorNicolas Roard <nicolasroard@google.com>
Fri, 18 Mar 2011 23:32:34 +0000 (16:32 -0700)
committerNicolas Roard <nicolasroard@google.com>
Fri, 18 Mar 2011 23:32:34 +0000 (16:32 -0700)
bug:4136077
Change-Id: Ia975ac78f724450be6f36a61316c872c4d88d7a0

WebCore/platform/graphics/android/LayerAndroid.cpp

index 0f2faa0..5d6bedd 100644 (file)
@@ -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);