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

Unified Diff: third_party/WebKit/Source/web/PageOverlay.cpp

Issue 1393083003: Implement interest rects for synchronized paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/web/PageOverlay.cpp
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index 24c330e0cf5b1eb98571a12f5e62df8a30acb17f..05138d5fb54f47f74ed91b034d695599a94db75c 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -97,7 +97,12 @@ void PageOverlay::update()
m_layer->setNeedsDisplay();
}
-void PageOverlay::paintContents(const GraphicsLayer*, GraphicsContext& gc, GraphicsLayerPaintingPhase, const IntRect& inClip) const
+void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& gc, GraphicsLayerPaintingPhase phase, const IntRect& inClip) const
+{
+ paintContentsIfNeeded(graphicsLayer, gc, phase);
+}
+
+void PageOverlay::paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext& gc, GraphicsLayerPaintingPhase) const
{
ASSERT(m_layer);
WebGraphicsContextImpl contextWrapper(gc, *this, DisplayItem::PageOverlay);

Powered by Google App Engine
This is Rietveld 408576698