Index: cc/debug_rect_history.cc |
diff --git a/cc/debug_rect_history.cc b/cc/debug_rect_history.cc |
index 6d7fa8aca2b93d37c2ba24b2835aa37a5a39ae13..8e4a3e055bd545160783b401fb6606487eb356c3 100644 |
--- a/cc/debug_rect_history.cc |
+++ b/cc/debug_rect_history.cc |
@@ -24,28 +24,28 @@ DebugRectHistory::~DebugRectHistory() |
{ |
} |
-void DebugRectHistory::saveDebugRectsForCurrentFrame(LayerImpl* rootLayer, const std::vector<LayerImpl*>& renderSurfaceLayerList, const std::vector<gfx::Rect>& occludingScreenSpaceRects, const std::vector<gfx::Rect>& nonOccludingScreenSpaceRects, const LayerTreeSettings& settings) |
+void DebugRectHistory::saveDebugRectsForCurrentFrame(LayerImpl* rootLayer, const std::vector<LayerImpl*>& renderSurfaceLayerList, const std::vector<gfx::Rect>& occludingScreenSpaceRects, const std::vector<gfx::Rect>& nonOccludingScreenSpaceRects, const LayerTreeSwitches& switches) |
{ |
// For now, clear all rects from previous frames. In the future we may want to store |
// all debug rects for a history of many frames. |
m_debugRects.clear(); |
- if (settings.showPaintRects) |
+ if (switches.showPaintRects) |
savePaintRects(rootLayer); |
- if (settings.showPropertyChangedRects) |
+ if (switches.showPropertyChangedRects) |
savePropertyChangedRects(renderSurfaceLayerList); |
- if (settings.showSurfaceDamageRects) |
+ if (switches.showSurfaceDamageRects) |
saveSurfaceDamageRects(renderSurfaceLayerList); |
- if (settings.showScreenSpaceRects) |
+ if (switches.showScreenSpaceRects) |
saveScreenSpaceRects(renderSurfaceLayerList); |
- if (settings.showOccludingRects) |
+ if (switches.showOccludingRects) |
saveOccludingRects(occludingScreenSpaceRects); |
- if (settings.showNonOccludingRects) |
+ if (switches.showNonOccludingRects) |
saveNonOccludingRects(nonOccludingScreenSpaceRects); |
} |