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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.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/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 48105ffcf855fe35153749a9584b24b3ea9b1818..1d3b64ecb253bd3ed7d37c99b5ba040c7020ce47 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -246,7 +246,7 @@ public:
static void unregisterContentsLayer(WebLayer*);
// GraphicsContextPainter implementation.
- void paint(GraphicsContext&, const IntRect* clip) override;
+ void paint(GraphicsContext&, const IntRect* interestRect) override;
// WebCompositorAnimationDelegate implementation.
void notifyAnimationStarted(double monotonicTime, int group) override;
@@ -268,6 +268,8 @@ public:
String debugName() const { return m_client->debugName(this) + " debug red fill"; }
#endif
+ IntRect previousInterestRect() const { return m_previousInterestRect; }
+
protected:
String debugName(WebLayer*) const;
@@ -374,6 +376,8 @@ private:
int m_3dRenderingContext;
OwnPtr<PaintController> m_paintController;
+
+ IntRect m_previousInterestRect;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698