| Index: cc/debug_rect_history.cc
|
| diff --git a/cc/debug_rect_history.cc b/cc/debug_rect_history.cc
|
| index 6d7fa8aca2b93d37c2ba24b2835aa37a5a39ae13..d79e30c85f6c50036c6f5cf38b8f24d6def71f76 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 LayerTreeDebugState& debugState)
|
| {
|
| // 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 (debugState.showPaintRects)
|
| savePaintRects(rootLayer);
|
|
|
| - if (settings.showPropertyChangedRects)
|
| + if (debugState.showPropertyChangedRects)
|
| savePropertyChangedRects(renderSurfaceLayerList);
|
|
|
| - if (settings.showSurfaceDamageRects)
|
| + if (debugState.showSurfaceDamageRects)
|
| saveSurfaceDamageRects(renderSurfaceLayerList);
|
|
|
| - if (settings.showScreenSpaceRects)
|
| + if (debugState.showScreenSpaceRects)
|
| saveScreenSpaceRects(renderSurfaceLayerList);
|
|
|
| - if (settings.showOccludingRects)
|
| + if (debugState.showOccludingRects)
|
| saveOccludingRects(occludingScreenSpaceRects);
|
|
|
| - if (settings.showNonOccludingRects)
|
| + if (debugState.showNonOccludingRects)
|
| saveNonOccludingRects(nonOccludingScreenSpaceRects);
|
| }
|
|
|
|
|