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

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

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | third_party/WebKit/Source/web/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a664ab995e3e06df61903f0e74e0384a62d91f5..29c0e9686a3589fa21c950c916ac9f0f831b39ec 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -292,6 +292,13 @@ void GraphicsLayer::setOffsetDoubleFromLayoutObject(const DoubleSize& offset, Sh
setNeedsDisplay();
}
+IntRect GraphicsLayer::interestRect()
+{
+ if (!RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled())
+ m_previousInterestRect = m_client->computeInterestRect(this, m_previousInterestRect);
+ return m_previousInterestRect;
+}
+
void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
{
ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
@@ -324,9 +331,9 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
}
}
+ m_previousInterestRect = *interestRect;
m_client->paintContents(this, context, m_paintingPhase, *interestRect);
notifyFirstPaintToClient();
- m_previousInterestRect = *interestRect;
}
void GraphicsLayer::notifyFirstPaintToClient()
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | third_party/WebKit/Source/web/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698