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

Unified Diff: Source/platform/graphics/GraphicsLayerDebugInfo.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/GraphicsLayerDebugInfo.cpp
diff --git a/Source/platform/graphics/GraphicsLayerDebugInfo.cpp b/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
index 0bc8464abb5958e0e265c29e5c3f1827fdf9b85d..dcfa22d7cc9a3e172ec7e7c5753deb7efe5107e5 100644
--- a/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
+++ b/Source/platform/graphics/GraphicsLayerDebugInfo.cpp
@@ -27,6 +27,7 @@ namespace blink {
GraphicsLayerDebugInfo::GraphicsLayerDebugInfo()
: m_compositingReasons(CompositingReasonNone)
+ , m_includesFirstPaintInvalidation(false)
{
}
@@ -42,6 +43,11 @@ void GraphicsLayerDebugInfo::appendAsTraceFormat(WebString* out) const
*out = jsonObject->toJSONString();
}
+bool GraphicsLayerDebugInfo::includesFirstPaintInvalidation() const
+{
+ return m_includesFirstPaintInvalidation;
+}
+
GraphicsLayerDebugInfo* GraphicsLayerDebugInfo::clone() const
{
GraphicsLayerDebugInfo* toReturn = new GraphicsLayerDebugInfo();
@@ -49,6 +55,7 @@ GraphicsLayerDebugInfo* GraphicsLayerDebugInfo::clone() const
toReturn->currentLayoutRects().append(m_currentLayoutRects[i]);
toReturn->setCompositingReasons(m_compositingReasons);
toReturn->setOwnerNodeId(m_ownerNodeId);
+ toReturn->setIncludesFirstPaintInvalidation(m_includesFirstPaintInvalidation);
return toReturn;
}

Powered by Google App Engine
This is Rietveld 408576698