[chromium] Remove dead and unnecessary code related to LayerChromium::cleanupResources
authoralokp@chromium.org <alokp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 23:13:44 +0000 (23:13 +0000)
committeralokp@chromium.org <alokp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jan 2012 23:13:44 +0000 (23:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77137

Reviewed by James Robinson.

No new test needed. Only removing dead code.

* platform/graphics/chromium/LayerChromium.cpp:
* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::layerTreeHost):
* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::setLayerTreeHost):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/LayerChromium.cpp
Source/WebCore/platform/graphics/chromium/LayerChromium.h
Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp

index 0e55edd..e38aabe 100644 (file)
@@ -1,3 +1,18 @@
+2012-01-26  Alok Priyadarshi  <alokp@chromium.org>
+
+        [chromium] Remove dead and unnecessary code related to LayerChromium::cleanupResources
+        https://bugs.webkit.org/show_bug.cgi?id=77137
+
+        Reviewed by James Robinson.
+
+        No new test needed. Only removing dead code.
+
+        * platform/graphics/chromium/LayerChromium.cpp:
+        * platform/graphics/chromium/LayerChromium.h:
+        (WebCore::LayerChromium::layerTreeHost):
+        * platform/graphics/chromium/TiledLayerChromium.cpp:
+        (WebCore::TiledLayerChromium::setLayerTreeHost):
+
 2012-01-26  Anders Carlsson  <andersca@apple.com>
 
         Move horizontal rubber-band checks to ScrollElasticityController::handleWheelEvent
index 4c63dfd..4a92751 100644 (file)
@@ -94,19 +94,6 @@ void LayerChromium::cleanupResources()
 {
 }
 
-void LayerChromium::cleanupResourcesRecursive()
-{
-    for (size_t i = 0; i < children().size(); ++i)
-        children()[i]->cleanupResourcesRecursive();
-
-    if (maskLayer())
-        maskLayer()->cleanupResourcesRecursive();
-    if (replicaLayer())
-        replicaLayer()->cleanupResourcesRecursive();
-
-    cleanupResources();
-}
-
 void LayerChromium::setIsNonCompositedContent(bool isNonCompositedContent)
 {
     m_isNonCompositedContent = isNonCompositedContent;
index c5f88f1..685de0c 100644 (file)
@@ -196,7 +196,6 @@ public:
     virtual void contentChanged() { }
 
     CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost.get(); }
-    void cleanupResourcesRecursive();
 
 protected:
     LayerChromium();
index 6385d68..f2e3122 100644 (file)
@@ -178,9 +178,6 @@ void TiledLayerChromium::setLayerTreeHost(CCLayerTreeHost* host)
     if (host == layerTreeHost())
         return;
 
-    if (layerTreeHost())
-        cleanupResources();
-
     LayerChromium::setLayerTreeHost(host);
 
     if (!host)