Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1014)

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 1416053003: Let synchronized painting generate correct paint invalidation rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For landing Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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&);

Powered by Google App Engine
This is Rietveld 408576698