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_SCHEDULER_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_H_ |
6 #define CC_SCHEDULER_SCHEDULER_H_ | 6 #define CC_SCHEDULER_SCHEDULER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 void DidLoseOutputSurface(); | 89 void DidLoseOutputSurface(); |
90 void DidCreateAndInitializeOutputSurface(); | 90 void DidCreateAndInitializeOutputSurface(); |
91 bool HasInitializedOutputSurface() const { | 91 bool HasInitializedOutputSurface() const { |
92 return state_machine_.HasInitializedOutputSurface(); | 92 return state_machine_.HasInitializedOutputSurface(); |
93 } | 93 } |
94 | 94 |
95 bool CommitPending() const { return state_machine_.CommitPending(); } | 95 bool CommitPending() const { return state_machine_.CommitPending(); } |
96 bool RedrawPending() const { return state_machine_.RedrawPending(); } | 96 bool RedrawPending() const { return state_machine_.RedrawPending(); } |
97 | 97 |
| 98 bool ActiveTreeNeedsFirstDraw() const; |
98 bool WillDrawIfNeeded() const; | 99 bool WillDrawIfNeeded() const; |
99 | 100 |
100 base::TimeTicks AnticipatedDrawTime(); | 101 base::TimeTicks AnticipatedDrawTime(); |
101 | 102 |
102 base::TimeTicks LastBeginFrameOnImplThreadTime(); | 103 base::TimeTicks LastBeginFrameOnImplThreadTime(); |
103 | 104 |
104 void BeginFrame(const BeginFrameArgs& args); | 105 void BeginFrame(const BeginFrameArgs& args); |
105 void OnBeginFrameDeadline(); | 106 void OnBeginFrameDeadline(); |
106 | 107 |
107 scoped_ptr<base::Value> StateAsValue() { | 108 scoped_ptr<base::Value> StateAsValue() { |
(...skipping 26 matching lines...) Expand all Loading... |
134 | 135 |
135 SchedulerStateMachine state_machine_; | 136 SchedulerStateMachine state_machine_; |
136 bool inside_process_scheduled_actions_; | 137 bool inside_process_scheduled_actions_; |
137 | 138 |
138 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 139 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
139 }; | 140 }; |
140 | 141 |
141 } // namespace cc | 142 } // namespace cc |
142 | 143 |
143 #endif // CC_SCHEDULER_SCHEDULER_H_ | 144 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |