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

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: reset from FrameView 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..50c3e0be8bf0e6bd17f77099a3e12b085181def1 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -907,6 +907,19 @@ void GraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect)
}
}
+void GraphicsLayer::setIncludesFirstPaintInvalidation()
+{
+ m_debugInfo.setIncludesFirstPaintInvalidation(true);
+}
+
+void GraphicsLayer::resetIncludesFirstPaintInvalidationRecursive()
+{
+ m_debugInfo.setIncludesFirstPaintInvalidation(false);
+
+ for (size_t i = 0; i < m_children.size(); ++i)
+ m_children[i]->resetIncludesFirstPaintInvalidationRecursive();
+}
+
void GraphicsLayer::setContentsRect(const IntRect& rect)
{
if (rect == m_contentsRect)

Powered by Google App Engine
This is Rietveld 408576698