| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
| 11 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gl/gl_bindings.h" | 13 #include "ui/gl/gl_bindings.h" |
| 14 #include "ui/gl/gl_context.h" | 14 #include "ui/gl/gl_context.h" |
| 15 #include "ui/gl/gl_surface.h" | 15 #include "ui/gl/gl_surface.h" |
| 16 #include "ui/ozone/public/ozone_platform.h" | 16 #include "ui/ozone/public/ozone_platform.h" |
| 17 #include "ui/ozone/public/surface_factory_ozone.h" | 17 #include "ui/ozone/public/surface_factory_ozone.h" |
| 18 #include "ui/ozone/public/surface_ozone_canvas.h" | 18 #include "ui/ozone/public/surface_ozone_canvas.h" |
| 19 #include "ui/platform_window/platform_window.h" | 19 #include "ui/platform_window/types/platform_window.h" |
| 20 #include "ui/platform_window/platform_window_delegate.h" | 20 #include "ui/platform_window/types/platform_window_delegate.h" |
| 21 | 21 |
| 22 const int kTestWindowWidth = 800; | 22 const int kTestWindowWidth = 800; |
| 23 const int kTestWindowHeight = 600; | 23 const int kTestWindowHeight = 600; |
| 24 | 24 |
| 25 const int kFrameDelayMilliseconds = 16; | 25 const int kFrameDelayMilliseconds = 16; |
| 26 | 26 |
| 27 const int kAnimationSteps = 240; | 27 const int kAnimationSteps = 240; |
| 28 | 28 |
| 29 const char kDisableGpu[] = "disable-gpu"; | 29 const char kDisableGpu[] = "disable-gpu"; |
| 30 | 30 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 DemoWindow* window = new DemoWindow; | 206 DemoWindow* window = new DemoWindow; |
| 207 window->Start(); | 207 window->Start(); |
| 208 | 208 |
| 209 // Run the message loop until there's nothing left to do. | 209 // Run the message loop until there's nothing left to do. |
| 210 // TODO(spang): Should we use QuitClosure instead? | 210 // TODO(spang): Should we use QuitClosure instead? |
| 211 base::RunLoop run_loop; | 211 base::RunLoop run_loop; |
| 212 run_loop.RunUntilIdle(); | 212 run_loop.RunUntilIdle(); |
| 213 | 213 |
| 214 return 0; | 214 return 0; |
| 215 } | 215 } |
| OLD | NEW |