Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h |
index 0702e3d56c5beb3230bbcf19a02a4768dba71800..89eb7e9929c98951f4124d9a939469a70cea1492 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h |
@@ -192,7 +192,10 @@ public: |
void setContentsNeedsDisplay(); |
- void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInvalidationReason, const IntRect& previousPaintInvalidationRect, const IntRect& newPaintInvalidationRect); |
+ // If |visualRect| is not nullptr, it contains all pixels within the GraphicsLayer which might be painted into by |
+ // the display item client, in coordinate space of the GraphicsLayer. |
+ // |visualRect| can be nullptr if we know it's unchanged and PaintController has cached the previous value. |
+ void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInvalidationReason, const IntRect* visualRect); |
// Set that the position/size of the contents (image or video). |
void setContentsRect(const IntRect&); |