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

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

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review Created 6 years, 4 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: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 649ab82e2683b5da128a9af3a5715149d0b009f5..c3d8f2c00f5bc669589e79165af3b1cbf856e51e 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -273,6 +273,7 @@ void GraphicsLayer::paintGraphicsLayerContents(GraphicsContext& context, const I
{
if (!m_client)
return;
+ m_debugInfo.setIncludesFirstPaintInvalidation(false);
incrementPaintCount();
m_client->paintContents(this, context, m_paintingPhase, clip);
}
@@ -907,6 +908,11 @@ void GraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect)
}
}
+void GraphicsLayer::setIncludesFirstPaintInvalidation()
+{
+ m_debugInfo.setIncludesFirstPaintInvalidation(true);
+}
+
void GraphicsLayer::setContentsRect(const IntRect& rect)
{
if (rect == m_contentsRect)

Powered by Google App Engine
This is Rietveld 408576698