summaryrefslogtreecommitdiffstats
path: root/ash/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/debug.cc')
-rw-r--r--ash/debug.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/ash/debug.cc b/ash/debug.cc
index f5c6220..060627c 100644
--- a/ash/debug.cc
+++ b/ash/debug.cc
@@ -13,12 +13,12 @@ namespace ash {
namespace debug {
void ToggleShowDebugBorders() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_debug_borders));
@@ -28,12 +28,12 @@ void ToggleShowDebugBorders() {
}
void ToggleShowFpsCounter() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_fps_counter));
@@ -43,12 +43,12 @@ void ToggleShowFpsCounter() {
}
void ToggleShowPaintRects() {
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
scoped_ptr<bool> value;
- for (aura::Window::Windows::iterator it = root_windows.begin();
+ for (Shell::RootWindowList::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
- ui::Compositor* compositor = (*it)->GetDispatcher()->compositor();
+ ui::Compositor* compositor = (*it)->compositor();
cc::LayerTreeDebugState state = compositor->GetLayerTreeDebugState();
if (!value.get())
value.reset(new bool(!state.show_paint_rects));