OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_SCHEDULER_H_ | 5 #ifndef CC_SCHEDULER_H_ |
6 #define CC_SCHEDULER_H_ | 6 #define CC_SCHEDULER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "cc/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/frame_rate_controller.h" | 12 #include "cc/frame_rate_controller.h" |
| 13 #include "cc/layer_tree_host.h" |
13 #include "cc/scheduler_state_machine.h" | 14 #include "cc/scheduler_state_machine.h" |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 class Thread; | 18 class Thread; |
18 | 19 |
19 struct ScheduledActionDrawAndSwapResult { | 20 struct ScheduledActionDrawAndSwapResult { |
20 ScheduledActionDrawAndSwapResult() | 21 ScheduledActionDrawAndSwapResult() |
21 : didDraw(false) | 22 : didDraw(false) |
22 , didSwap(false) | 23 , didSwap(false) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 scoped_ptr<FrameRateController> m_frameRateController; | 101 scoped_ptr<FrameRateController> m_frameRateController; |
101 SchedulerStateMachine m_stateMachine; | 102 SchedulerStateMachine m_stateMachine; |
102 bool m_insideProcessScheduledActions; | 103 bool m_insideProcessScheduledActions; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 105 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace cc | 108 } // namespace cc |
108 | 109 |
109 #endif // CC_SCHEDULER_H_ | 110 #endif // CC_SCHEDULER_H_ |
OLD | NEW |