Commit e39dc6e6 authored by vollick@chromium.org's avatar vollick@chromium.org

Include compositing reasons in the "debug" GraphicsLayer tree dump.

It's useful.

R=hartmanng@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/176963018

git-svn-id: svn://svn.chromium.org/blink/trunk@168489 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1762293c
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment