[Coordinated Graphics] Remove unused method in CoordinatedGraphicsLayer
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Sep 2013 16:39:53 +0000 (16:39 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Sep 2013 16:39:53 +0000 (16:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=120664

Patch by Jae Hyun Park <jae.park@company100.net> on 2013-09-04
Reviewed by Darin Adler.

CoordinatedGraphicsLayer::hasPendingVisibleChanges is not used as of
r148952.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h

index 1bf3c7bd2ef79aafcf2d39b25c138cac348b11b7..8d94573e4294e5c2d1b4cdee0ff20df48a415c37 100644 (file)
@@ -1,3 +1,16 @@
+2013-09-04  Jae Hyun Park  <jae.park@company100.net>
+
+        [Coordinated Graphics] Remove unused method in CoordinatedGraphicsLayer
+        https://bugs.webkit.org/show_bug.cgi?id=120664
+
+        Reviewed by Darin Adler.
+
+        CoordinatedGraphicsLayer::hasPendingVisibleChanges is not used as of
+        r148952.
+
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
+
 2013-09-04  Hans Muller  <hmuller@adobe.com>
 
         [CSS Shapes] Revise the ShapeInterval set operations' implementation
 2013-09-04  Hans Muller  <hmuller@adobe.com>
 
         [CSS Shapes] Revise the ShapeInterval set operations' implementation
index 77dc0e1e9b50e6161152610e4c85d5706bd35f47..83305e0c02fef1ea0ed591bfbfb1f7d5108084c0 100644 (file)
@@ -1069,27 +1069,6 @@ void CoordinatedGraphicsLayer::setNeedsVisibleRectAdjustment()
         m_pendingVisibleRectAdjustment = true;
 }
 
         m_pendingVisibleRectAdjustment = true;
 }
 
-bool CoordinatedGraphicsLayer::hasPendingVisibleChanges()
-{
-    if (opacity() < 0.01 && !m_animations.hasActiveAnimationsOfType(AnimatedPropertyOpacity))
-        return false;
-
-    for (size_t i = 0; i < children().size(); ++i) {
-        if (toCoordinatedGraphicsLayer(children()[i])->hasPendingVisibleChanges())
-            return true;
-    }
-
-    bool shouldSyncCanvas = false;
-#if USE(GRAPHICS_SURFACE)
-    shouldSyncCanvas = m_pendingCanvasOperation & SyncCanvas;
-#endif
-
-    if (!m_shouldSyncLayerState && !m_shouldSyncChildren && !m_shouldSyncFilters && !m_shouldSyncImageBacking && !m_shouldSyncAnimations && !shouldSyncCanvas)
-        return false;
-
-    return tiledBackingStoreVisibleRect().intersects(tiledBackingStoreContentsRect());
-}
-
 static inline bool isIntegral(float value)
 {
     return static_cast<int>(value) == value;
 static inline bool isIntegral(float value)
 {
     return static_cast<int>(value) == value;
index cfbc2135d8440e3280430315617755b743434570..6105e2311de303654f40e1e23e237de062f9fd7c 100644 (file)
@@ -149,7 +149,6 @@ public:
 
     void setNeedsVisibleRectAdjustment();
     void purgeBackingStores();
 
     void setNeedsVisibleRectAdjustment();
     void purgeBackingStores();
-    bool hasPendingVisibleChanges();
 
     static void setShouldSupportContentsTiling(bool);
     CoordinatedGraphicsLayer* findFirstDescendantWithContentsRecursively();
 
     static void setShouldSupportContentsTiling(bool);
     CoordinatedGraphicsLayer* findFirstDescendantWithContentsRecursively();