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 95e1a65654fd9933e10d3e9d9f9f4fa52a1f3c8b..4a6665096502716772e9f6f45551416a1682dedb 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
@@ -123,8 +123,11 @@ public: |
// LayoutRect is in the coordinate space of the layer's layout object. |
void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason); |
- void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvalidationRect); |
- void invalidateDisplayItemClientOnScrollingContentsLayer(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvalidationRect); |
+ // If |visualRect| is not nullptr, it contains all pixels that might be painted by the display item client, |
+ // in coordinate space of the layer's layout object. |
+ // |visualRect| can be nullptr if we know it's unchanged and PaintController has cached the previous value. |
+ void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect* visualRect); |
+ void invalidateDisplayItemClientOnScrollingContentsLayer(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect* visualRect); |
// Notification from the layoutObject that its content changed. |
void contentChanged(ContentChangeType); |