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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void SetMainThreadNeedsLayerTextures(); | 78 void SetMainThreadNeedsLayerTextures(); |
79 | 79 |
80 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if | 80 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if |
81 // we are not visible. | 81 // we are not visible. |
82 void SetNeedsForcedRedraw(); | 82 void SetNeedsForcedRedraw(); |
83 | 83 |
84 void DidSwapUseIncompleteTile(); | 84 void DidSwapUseIncompleteTile(); |
85 | 85 |
86 void FinishCommit(); | 86 void FinishCommit(); |
87 void BeginFrameAbortedByMainThread(); | 87 void BeginFrameAbortedByMainThread(bool cancel_commit); |
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 |
(...skipping 29 matching lines...) Expand all Loading... |
127 | 127 |
128 SchedulerStateMachine state_machine_; | 128 SchedulerStateMachine state_machine_; |
129 bool inside_process_scheduled_actions_; | 129 bool inside_process_scheduled_actions_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 131 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace cc | 134 } // namespace cc |
135 | 135 |
136 #endif // CC_SCHEDULER_SCHEDULER_H_ | 136 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |