Index: cc/debug_rect_history.cc |
diff --git a/cc/debug_rect_history.cc b/cc/debug_rect_history.cc |
index 6d7fa8aca2b93d37c2ba24b2835aa37a5a39ae13..b6252b7f7c000d19391848b077905b9dae70c395 100644 |
--- a/cc/debug_rect_history.cc |
+++ b/cc/debug_rect_history.cc |
@@ -5,8 +5,8 @@ |
#include "cc/debug_rect_history.h" |
#include "cc/damage_tracker.h" |
+#include "cc/heads_up_display_layer.h" |
#include "cc/layer_impl.h" |
-#include "cc/layer_tree_host.h" |
#include "cc/math_util.h" |
namespace 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 HeadsUpDisplayLayerFlags& flags) |
{ |
// 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 (flags.showPaintRects) |
egraether
2012/11/15 23:37:07
One of the main reasons for this whole change was
|
savePaintRects(rootLayer); |
- if (settings.showPropertyChangedRects) |
+ if (flags.showPropertyChangedRects) |
savePropertyChangedRects(renderSurfaceLayerList); |
- if (settings.showSurfaceDamageRects) |
+ if (flags.showSurfaceDamageRects) |
saveSurfaceDamageRects(renderSurfaceLayerList); |
- if (settings.showScreenSpaceRects) |
+ if (flags.showScreenSpaceRects) |
saveScreenSpaceRects(renderSurfaceLayerList); |
- if (settings.showOccludingRects) |
+ if (flags.showOccludingRects) |
saveOccludingRects(occludingScreenSpaceRects); |
- if (settings.showNonOccludingRects) |
+ if (flags.showNonOccludingRects) |
saveNonOccludingRects(nonOccludingScreenSpaceRects); |
} |