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

Unified Diff: ash/debug.cc

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: nits Created 3 years, 8 months 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 | « no previous file | cc/base/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/debug.cc
diff --git a/ash/debug.cc b/ash/debug.cc
index 9ffce24965c83c8bf5069b2b4de2d09aa6f729b4..4ce6e3f2be5cb64f10735549ad73d6d5100eaada 100644
--- a/ash/debug.cc
+++ b/ash/debug.cc
@@ -14,13 +14,13 @@ namespace debug {
void ToggleShowDebugBorders() {
aura::Window::Windows root_windows = Shell::Get()->GetAllRootWindows();
- std::unique_ptr<bool> value;
+ std::unique_ptr<cc::DebugBorderTypes> value;
for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
ui::Compositor* compositor = (*it)->GetHost()->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
- value.reset(new bool(!state.show_debug_borders));
+ value.reset(new cc::DebugBorderTypes(state.show_debug_borders.flip()));
state.show_debug_borders = *value.get();
compositor->SetLayerTreeDebugState(state);
}
« no previous file with comments | « no previous file | cc/base/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698