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

Unified Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 16509007: Cleanup constants for layerTreeAsText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: naming Created 7 years, 6 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/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 8dfcfe82615d49e2c7f06891b70e7eb740f02b28..ecbfcb4f52ca5614b3cad2546be4a624b75e58bb 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -1210,23 +1210,13 @@ String RenderLayerCompositor::layerTreeAsText(LayerTreeFlags flags)
if (!m_rootContentLayer)
return String();
- LayerTreeAsTextBehavior layerTreeBehavior = LayerTreeAsTextBehaviorNormal;
- if (flags & LayerTreeFlagsIncludeDebugInfo)
- layerTreeBehavior |= LayerTreeAsTextDebug;
- if (flags & LayerTreeFlagsIncludeVisibleRects)
- layerTreeBehavior |= LayerTreeAsTextIncludeVisibleRects;
- if (flags & LayerTreeFlagsIncludeRepaintRects)
- layerTreeBehavior |= LayerTreeAsTextIncludeRepaintRects;
- if (flags & LayerTreeFlagsIncludePaintingPhases)
- layerTreeBehavior |= LayerTreeAsTextIncludePaintingPhases;
-
// We skip dumping the scroll and clip layers to keep layerTreeAsText output
// similar between platforms.
- String layerTreeText = m_rootContentLayer->layerTreeAsText(layerTreeBehavior);
+ String layerTreeText = m_rootContentLayer->layerTreeAsText(flags);
// The true root layer is not included in the dump, so if we want to report
// its repaint rects, they must be included here.
- if (flags & LayerTreeFlagsIncludeRepaintRects) {
+ if (flags & LayerTreeIncludesRepaintRects) {
String layerTreeTextWithRootRepaintRects = m_renderView->frameView()->trackedRepaintRectsAsText();
layerTreeTextWithRootRepaintRects.append(layerTreeText);
return layerTreeTextWithRootRepaintRects;

Powered by Google App Engine
This is Rietveld 408576698