[Coordinated Graphics] Remove unused method in CoordinatedGraphicsLayer
[WebKit-https.git] / Source / WebCore / platform / graphics / texmap / coordinated / CoordinatedGraphicsLayer.cpp
index 77dc0e1e9b50e6161152610e4c85d5706bd35f47..83305e0c02fef1ea0ed591bfbfb1f7d5108084c0 100644 (file)
@@ -1069,27 +1069,6 @@ void CoordinatedGraphicsLayer::setNeedsVisibleRectAdjustment()
         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;