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 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if | 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if |
71 // we are not visible. Will eventually result in a forced draw internally. | 71 // we are not visible. Will eventually result in a forced draw internally. |
72 void SetNeedsForcedCommitForReadback(); | 72 void SetNeedsForcedCommitForReadback(); |
73 | 73 |
74 void SetNeedsRedraw(); | 74 void SetNeedsRedraw(); |
75 | 75 |
76 void SetNeedsManageTiles(); | 76 void SetNeedsManageTiles(); |
77 | 77 |
78 void SetMainThreadNeedsLayerTextures(); | 78 void SetMainThreadNeedsLayerTextures(); |
79 | 79 |
| 80 void SetMaxSwapsPending(int max); |
| 81 void DidSwapBuffers(); |
80 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); | 82 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); |
| 83 void OnSwapBuffersComplete(); |
81 | 84 |
82 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); | 85 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); |
83 | 86 |
84 void NotifyReadyToCommit(); | 87 void NotifyReadyToCommit(); |
85 void BeginMainFrameAborted(bool did_handle); | 88 void BeginMainFrameAborted(bool did_handle); |
86 | 89 |
87 void DidManageTiles(); | 90 void DidManageTiles(); |
88 void DidLoseOutputSurface(); | 91 void DidLoseOutputSurface(); |
89 void DidCreateAndInitializeOutputSurface(); | 92 void DidCreateAndInitializeOutputSurface(); |
90 bool HasInitializedOutputSurface() const { | 93 bool HasInitializedOutputSurface() const { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 SchedulerStateMachine::Action inside_action_; | 157 SchedulerStateMachine::Action inside_action_; |
155 | 158 |
156 base::WeakPtrFactory<Scheduler> weak_factory_; | 159 base::WeakPtrFactory<Scheduler> weak_factory_; |
157 | 160 |
158 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 161 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
159 }; | 162 }; |
160 | 163 |
161 } // namespace cc | 164 } // namespace cc |
162 | 165 |
163 #endif // CC_SCHEDULER_SCHEDULER_H_ | 166 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |