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

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

Issue 176963018: Include compositing reasons in the "debug" GraphicsLayer tree dump. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 501b806c1bfeaf9747b213368ebefba45792bea5..e1c27e2ccb2fdd091b507240a7d300c1c5220fa7 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -725,6 +725,19 @@ void GraphicsLayer::dumpProperties(TextStream& ts, int indent, LayerTreeFlags fl
}
}
+ if (flags & LayerTreeIncludesDebugInfo) {
+ writeIndent(ts, indent + 1);
+ ts << "(compositingReasons\n";
+ for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonStringMap); ++i) {
+ if (m_debugInfo.compositingReasons() & compositingReasonStringMap[i].reason) {
+ writeIndent(ts, indent + 2);
+ ts << compositingReasonStringMap[i].description << "\n";
+ }
+ }
+ writeIndent(ts, indent + 1);
+ ts << ")\n";
+ }
+
if (m_children.size()) {
writeIndent(ts, indent + 1);
ts << "(children " << m_children.size() << "\n";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698