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

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: Rebase to 170216 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
« no previous file with comments | « cc/debug_rect_history.h ('k') | cc/heads_up_display_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « cc/debug_rect_history.h ('k') | cc/heads_up_display_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698