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

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: Fix release builds 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..6959096b37ae9957771715fdaf4dae5d28e20b98 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h
@@ -69,10 +69,13 @@ public:
virtual void notifyFirstTextPaint() { }
virtual void notifyFirstImagePaint() { }
- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect* inClip) const = 0;
+ virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& previousInterestRect) const = 0;
+ virtual bool needsRepaint() const { return true; }
+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& interestRect) const = 0;
+
virtual bool isTrackingPaintInvalidations() const { return false; }
- virtual String debugName(const GraphicsLayer*) = 0;
+ virtual String debugName(const GraphicsLayer*) const = 0;
#if ENABLE(ASSERT)
// CompositedLayerMapping overrides this to verify that it is not

Powered by Google App Engine
This is Rietveld 408576698