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 "ui/compositor/test/draw_waiter_for_test.h" | 5 #include "ui/compositor/test/draw_waiter_for_test.h" |
6 | 6 |
7 #include "ui/compositor/compositor.h" | 7 #include "ui/compositor/compositor.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 base::TimeTicks start_time) { | 47 base::TimeTicks start_time) { |
48 if (wait_event_ == WAIT_FOR_COMPOSITING_STARTED) | 48 if (wait_event_ == WAIT_FOR_COMPOSITING_STARTED) |
49 wait_run_loop_->Quit(); | 49 wait_run_loop_->Quit(); |
50 } | 50 } |
51 | 51 |
52 void DrawWaiterForTest::OnCompositingEnded(Compositor* compositor) { | 52 void DrawWaiterForTest::OnCompositingEnded(Compositor* compositor) { |
53 if (wait_event_ == WAIT_FOR_COMPOSITING_ENDED) | 53 if (wait_event_ == WAIT_FOR_COMPOSITING_ENDED) |
54 wait_run_loop_->Quit(); | 54 wait_run_loop_->Quit(); |
55 } | 55 } |
56 | 56 |
57 void DrawWaiterForTest::OnCompositingAborted(Compositor* compositor) { | |
58 } | |
59 | |
60 void DrawWaiterForTest::OnCompositingLockStateChanged(Compositor* compositor) {} | 57 void DrawWaiterForTest::OnCompositingLockStateChanged(Compositor* compositor) {} |
61 | 58 |
62 void DrawWaiterForTest::OnCompositingShuttingDown(Compositor* compositor) {} | 59 void DrawWaiterForTest::OnCompositingShuttingDown(Compositor* compositor) {} |
63 | 60 |
64 } // namespace ui | 61 } // namespace ui |
OLD | NEW |