| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } else { | 115 } else { |
| 116 Draw(); | 116 Draw(); |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 | 119 |
| 120 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE {} | 120 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE {} |
| 121 | 121 |
| 122 virtual void OnCompositingLockStateChanged( | 122 virtual void OnCompositingLockStateChanged( |
| 123 Compositor* compositor) OVERRIDE {} | 123 Compositor* compositor) OVERRIDE {} |
| 124 | 124 |
| 125 virtual void OnUpdateVSyncParameters(ui::Compositor* compositor, |
| 126 base::TimeTicks timebase, |
| 127 base::TimeDelta interval) OVERRIDE { |
| 128 } |
| 129 |
| 125 virtual void Draw() {} | 130 virtual void Draw() {} |
| 126 | 131 |
| 127 int frames() const { return frames_; } | 132 int frames() const { return frames_; } |
| 128 | 133 |
| 129 private: | 134 private: |
| 130 TimeTicks start_time_; | 135 TimeTicks start_time_; |
| 131 int frames_; | 136 int frames_; |
| 132 int max_frames_; | 137 int max_frames_; |
| 133 | 138 |
| 134 DISALLOW_COPY_AND_ASSIGN(BenchCompositorObserver); | 139 DISALLOW_COPY_AND_ASSIGN(BenchCompositorObserver); |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 ui::PrintLayerHierarchy(root_window->window()->layer(), gfx::Point(100, 100)); | 355 ui::PrintLayerHierarchy(root_window->window()->layer(), gfx::Point(100, 100)); |
| 351 #endif | 356 #endif |
| 352 | 357 |
| 353 root_window->host()->Show(); | 358 root_window->host()->Show(); |
| 354 base::MessageLoopForUI::current()->Run(); | 359 base::MessageLoopForUI::current()->Run(); |
| 355 focus_client.reset(); | 360 focus_client.reset(); |
| 356 root_window.reset(); | 361 root_window.reset(); |
| 357 | 362 |
| 358 return 0; | 363 return 0; |
| 359 } | 364 } |
| OLD | NEW |