Title: [106048] trunk/Source/WebCore
Revision
106048
Author
jam...@google.com
Date
2012-01-26 14:46:53 -0800 (Thu, 26 Jan 2012)

Log Message

[chromium] Remove setLayerTreeHost nonsense on lost context
https://bugs.webkit.org/show_bug.cgi?id=76675

Reviewed by Kenneth Russell.

This code isn't needed any more. On a lost context event, we drop all TextureManager-managed textures through
the proxy and no layer types need special lost context handling.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::didRecreateGraphicsContext):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (106047 => 106048)


--- trunk/Source/WebCore/ChangeLog	2012-01-26 22:33:58 UTC (rev 106047)
+++ trunk/Source/WebCore/ChangeLog	2012-01-26 22:46:53 UTC (rev 106048)
@@ -1,3 +1,16 @@
+2012-01-19  James Robinson  <jam...@chromium.org>
+
+        [chromium] Remove setLayerTreeHost nonsense on lost context
+        https://bugs.webkit.org/show_bug.cgi?id=76675
+
+        Reviewed by Kenneth Russell.
+
+        This code isn't needed any more. On a lost context event, we drop all TextureManager-managed textures through
+        the proxy and no layer types need special lost context handling.
+
+        * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
+        (WebCore::CCLayerTreeHost::didRecreateGraphicsContext):
+
 2012-01-26  Anders Carlsson  <ander...@apple.com>
 
         Simplify checking of whether we should rubberband horizontally

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp (106047 => 106048)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp	2012-01-26 22:33:58 UTC (rev 106047)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp	2012-01-26 22:46:53 UTC (rev 106048)
@@ -185,10 +185,6 @@
 
 void CCLayerTreeHost::didRecreateGraphicsContext(bool success)
 {
-    if (m_rootLayer) {
-        m_rootLayer->setLayerTreeHost(0);
-        m_rootLayer->setLayerTreeHost(this);
-    }
     m_client->didRecreateGraphicsContext(success);
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to