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

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

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/GraphicsLayerClient.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h
index e2406d5957e6f644cdf8891477fe1079cf4bcae8..a696b129efd11d724fc8004c78a153b54fb30ff5 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h
@@ -69,7 +69,9 @@ public:
virtual void notifyFirstTextPaint() { }
virtual void notifyFirstImagePaint() { }
- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect* inClip) const = 0;
+ // Paints contents covering interest rect if given, or covering the default interest rect calculated based
+ // on the layer size and the visible area. Returns the actual interest rect used.
+ virtual IntRect paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect* interestRect) const = 0;
virtual bool isTrackingPaintInvalidations() const { return false; }
virtual String debugName(const GraphicsLayer*) = 0;

Powered by Google App Engine
This is Rietveld 408576698