Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/debug.h" | 5 #include "ash/debug.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "cc/debug/layer_tree_debug_state.h" | 8 #include "cc/debug/layer_tree_debug_state.h" |
| 9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
| 10 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 it != root_windows.end(); ++it) { | 50 it != root_windows.end(); ++it) { |
| 51 ui::Compositor* compositor = (*it)->GetHost()->compositor(); | 51 ui::Compositor* compositor = (*it)->GetHost()->compositor(); |
| 52 cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState(); | 52 cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState(); |
| 53 if (!value.get()) | 53 if (!value.get()) |
| 54 value.reset(new bool(!state.show_paint_rects)); | 54 value.reset(new bool(!state.show_paint_rects)); |
| 55 state.show_paint_rects = *value.get(); | 55 state.show_paint_rects = *value.get(); |
| 56 compositor->SetLayerTreeDebugState(state); | 56 compositor->SetLayerTreeDebugState(state); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // debug | 60 } // namespace bug |
|
James Cook
2014/07/21 17:28:19
"bug" -> "debug"
rucifer1217
2014/07/21 21:54:27
it is my mistake.
| |
| 61 } // ash | 61 } // namespace ash |
| OLD | NEW |