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
+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
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;
void setNeedsVisibleRectAdjustment();
void purgeBackingStores();
- bool hasPendingVisibleChanges();
static void setShouldSupportContentsTiling(bool);
CoordinatedGraphicsLayer* findFirstDescendantWithContentsRecursively();