Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
index b59a547d7d35e46cac8fedb326e12dff0f284f20..9fd872a88074b7dd8098e22a9c570c2138b5ed09 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
@@ -154,8 +154,7 @@ public: |
void notifyFirstTextPaint() override; |
void notifyFirstImagePaint() override; |
- void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clip) const override; |
- void paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase) const override; |
+ void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect* clip) const override; |
bool isTrackingPaintInvalidations() const override; |
#if ENABLE(ASSERT) |
@@ -316,6 +315,8 @@ private: |
// not appear earlier in the set of layers for this object. |
bool invalidateLayerIfNoPrecedingEntry(size_t); |
+ void paintContentsInternal(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& interestRect) const; |
+ |
PaintLayer& m_owningLayer; |
// The hierarchy of layers that is maintained by the CompositedLayerMapping looks like this: |
@@ -439,6 +440,8 @@ private: |
unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
unsigned m_scrollingContentsAreEmpty : 1; |
+ mutable IntRect m_previousPaintInterestRect; |
+ |
friend class CompositedLayerMappingTest; |
}; |