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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
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/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 92a5678076aae0a620e5187d444f6b1ad2b0eae2..f7b7cf549950a6887417843f67fec82d08c9860c 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -293,20 +293,10 @@ void GraphicsLayer::setOffsetDoubleFromLayoutObject(const DoubleSize& offset, Sh
setNeedsDisplay();
}
-void GraphicsLayer::paintIfNeeded(GraphicsContext& context)
+void GraphicsLayer::paint(GraphicsContext& context, const IntRect* clip)
{
- ASSERT(RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
- if (!m_client)
- return;
- if (firstPaintInvalidationTrackingEnabled())
- m_debugInfo.clearAnnotatedInvalidateRects();
- incrementPaintCount();
- m_client->paintContentsIfNeeded(this, context, m_paintingPhase);
- notifyFirstPaintToClient();
-}
+ ASSERT(clip || RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
-void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip)
-{
if (!m_client)
return;
if (firstPaintInvalidationTrackingEnabled())

Powered by Google App Engine
This is Rietveld 408576698