[CoordinatedGraphics] Crash in TextureMapperLayer::setBackingStore()
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Dec 2012 10:29:38 +0000 (10:29 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 2 Dec 2012 10:29:38 +0000 (10:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=103714

Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-02
Reviewed by Kenneth Rohde Christiansen.

Remove a layer from the m_pendingSyncBackingStores map when it is deleted.

* UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
(WebKit::LayerTreeRenderer::deleteLayer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136322 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp

index a7e8aab..15f63b3 100644 (file)
@@ -1,3 +1,15 @@
+2012-12-02  No'am Rosenthal  <noam@webkit.org>
+
+        [CoordinatedGraphics] Crash in TextureMapperLayer::setBackingStore()
+        https://bugs.webkit.org/show_bug.cgi?id=103714
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Remove a layer from the m_pendingSyncBackingStores map when it is deleted.
+
+        * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
+        (WebKit::LayerTreeRenderer::deleteLayer):
+
 2012-12-02  Yael Aharon  <yael.aharon@intel.com>
 
         [EFL][WK2] MiniBrowser should have a legacy mode
index 71c4bcb..7c96f41 100644 (file)
@@ -368,6 +368,7 @@ void LayerTreeRenderer::deleteLayer(WebLayerID layerID)
         return;
 
     layer->removeFromParent();
+    m_pendingSyncBackingStores.remove(toTextureMapperLayer(layer.get()));
     m_fixedLayers.remove(layerID);
 #if USE(GRAPHICS_SURFACE)
     m_surfaceBackingStores.remove(layerID);