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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void SetNeedsCommit(); | 70 void SetNeedsCommit(); |
71 | 71 |
72 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if | 72 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if |
73 // we are not visible. Will eventually result in a forced draw internally. | 73 // we are not visible. Will eventually result in a forced draw internally. |
74 void SetNeedsForcedCommitForReadback(); | 74 void SetNeedsForcedCommitForReadback(); |
75 | 75 |
76 void SetNeedsRedraw(); | 76 void SetNeedsRedraw(); |
77 | 77 |
78 void SetMainThreadNeedsLayerTextures(); | 78 void SetMainThreadNeedsLayerTextures(); |
79 | 79 |
80 void DidSwapUseIncompleteTile(); | 80 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); |
81 | 81 |
82 void FinishCommit(); | 82 void FinishCommit(); |
83 void BeginFrameAbortedByMainThread(bool did_handle); | 83 void BeginFrameAbortedByMainThread(bool did_handle); |
84 | 84 |
85 void DidLoseOutputSurface(); | 85 void DidLoseOutputSurface(); |
86 void DidCreateAndInitializeOutputSurface(); | 86 void DidCreateAndInitializeOutputSurface(); |
87 bool HasInitializedOutputSurface() const { | 87 bool HasInitializedOutputSurface() const { |
88 return state_machine_.HasInitializedOutputSurface(); | 88 return state_machine_.HasInitializedOutputSurface(); |
89 } | 89 } |
90 | 90 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 SchedulerStateMachine state_machine_; | 127 SchedulerStateMachine state_machine_; |
128 bool inside_process_scheduled_actions_; | 128 bool inside_process_scheduled_actions_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 130 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace cc | 133 } // namespace cc |
134 | 134 |
135 #endif // CC_SCHEDULER_SCHEDULER_H_ | 135 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |