| 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 <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void DidSwapBuffersComplete(); | 92 void DidSwapBuffersComplete(); |
| 93 | 93 |
| 94 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); | 94 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); |
| 95 | 95 |
| 96 void NotifyReadyToCommit(); | 96 void NotifyReadyToCommit(); |
| 97 void BeginMainFrameAborted(bool did_handle); | 97 void BeginMainFrameAborted(bool did_handle); |
| 98 | 98 |
| 99 void DidManageTiles(); | 99 void DidManageTiles(); |
| 100 void DidLoseOutputSurface(); | 100 void DidLoseOutputSurface(); |
| 101 void DidCreateAndInitializeOutputSurface(); | 101 void DidCreateAndInitializeOutputSurface(); |
| 102 bool HasInitializedOutputSurface() const { | |
| 103 return state_machine_.HasInitializedOutputSurface(); | |
| 104 } | |
| 105 | 102 |
| 106 bool CommitPending() const { return state_machine_.CommitPending(); } | 103 bool CommitPending() const { return state_machine_.CommitPending(); } |
| 107 bool RedrawPending() const { return state_machine_.RedrawPending(); } | 104 bool RedrawPending() const { return state_machine_.RedrawPending(); } |
| 108 bool ManageTilesPending() const { | 105 bool ManageTilesPending() const { |
| 109 return state_machine_.ManageTilesPending(); | 106 return state_machine_.ManageTilesPending(); |
| 110 } | 107 } |
| 111 bool MainThreadIsInHighLatencyMode() const { | 108 bool MainThreadIsInHighLatencyMode() const { |
| 112 return state_machine_.MainThreadIsInHighLatencyMode(); | 109 return state_machine_.MainThreadIsInHighLatencyMode(); |
| 113 } | 110 } |
| 114 bool BeginImplFrameDeadlinePending() const { | 111 bool BeginImplFrameDeadlinePending() const { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 SchedulerStateMachine::Action inside_action_; | 201 SchedulerStateMachine::Action inside_action_; |
| 205 | 202 |
| 206 base::WeakPtrFactory<Scheduler> weak_factory_; | 203 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 207 | 204 |
| 208 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 205 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 209 }; | 206 }; |
| 210 | 207 |
| 211 } // namespace cc | 208 } // namespace cc |
| 212 | 209 |
| 213 #endif // CC_SCHEDULER_SCHEDULER_H_ | 210 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |