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

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: 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/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 48105ffcf855fe35153749a9584b24b3ea9b1818..6e586637ed611c3918f845f47d01f130881b29ae 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;
@@ -263,10 +263,8 @@ public:
static void setDrawDebugRedFillForTesting(bool);
ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_contentLayerDelegate.get(); }
-#ifndef NDEBUG
DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
- String debugName() const { return m_client->debugName(this) + " debug red fill"; }
-#endif
+ String debugName() const { return m_client->debugName(this); }
protected:
String debugName(WebLayer*) const;
@@ -275,6 +273,7 @@ protected:
// GraphicsLayerFactoryChromium that wants to create a GraphicsLayer need to be friends.
friend class GraphicsLayerFactoryChromium;
// for testing
+ friend class CompositedLayerMappingTest;
friend class FakeGraphicsLayerFactory;
private:
@@ -374,6 +373,8 @@ private:
int m_3dRenderingContext;
OwnPtr<PaintController> m_paintController;
+
+ IntRect m_previousInterestRect;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698