OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/icu_util.h" | 8 #include "base/i18n/icu_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 } else { | 356 } else { |
357 bench.reset(new WebGLBench(&page_background, | 357 bench.reset(new WebGLBench(&page_background, |
358 root_window->compositor(), | 358 root_window->compositor(), |
359 frames)); | 359 frames)); |
360 } | 360 } |
361 | 361 |
362 #ifndef NDEBUG | 362 #ifndef NDEBUG |
363 ui::PrintLayerHierarchy(root_window->window()->layer(), gfx::Point(100, 100)); | 363 ui::PrintLayerHierarchy(root_window->window()->layer(), gfx::Point(100, 100)); |
364 #endif | 364 #endif |
365 | 365 |
366 root_window->ShowRootWindow(); | 366 root_window->host()->Show(); |
367 base::MessageLoopForUI::current()->Run(); | 367 base::MessageLoopForUI::current()->Run(); |
368 focus_client.reset(); | 368 focus_client.reset(); |
369 root_window.reset(); | 369 root_window.reset(); |
370 | 370 |
371 return 0; | 371 return 0; |
372 } | 372 } |
OLD | NEW |