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

Unified Diff: cc/debug_rect_history.cc

Issue 11414017: cc: handling debug settings in new LayerTreeDebugState structure (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698