OSDN Git Service

Fix old textures not being repainted
authorChris Craik <ccraik@google.com>
Tue, 6 Sep 2011 21:44:13 +0000 (14:44 -0700)
committerChris Craik <ccraik@google.com>
Tue, 6 Sep 2011 21:56:48 +0000 (14:56 -0700)
bug:5261488

Tile textures that were reacquired by the same tiles weren't being marked as
dirty.

Change-Id: Ie5c41ff7a8166e5e48736bdc504b90e8c5512f79

Source/WebCore/platform/graphics/android/BaseTileTexture.cpp

index 9db819c..34de9e7 100644 (file)
@@ -214,6 +214,10 @@ bool BaseTileTexture::release(TextureOwner* owner)
     if (m_owner != owner)
         return false;
 
+    // force readyFor to return false next call (even if texture reaquired by same tile)
+    m_ownTextureTileInfo.m_x = -1;
+    m_ownTextureTileInfo.m_y = -1;
+    m_ownTextureTileInfo.m_scale = 0;
     if (!m_busy) {
         m_owner = 0;
     } else {