| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void DidSwapBuffersComplete(); | 87 void DidSwapBuffersComplete(); |
| 88 | 88 |
| 89 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); | 89 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); |
| 90 | 90 |
| 91 void NotifyReadyToCommit(); | 91 void NotifyReadyToCommit(); |
| 92 void BeginMainFrameAborted(bool did_handle); | 92 void BeginMainFrameAborted(bool did_handle); |
| 93 | 93 |
| 94 void DidManageTiles(); | 94 void DidManageTiles(); |
| 95 void DidLoseOutputSurface(); | 95 void DidLoseOutputSurface(); |
| 96 void DidCreateAndInitializeOutputSurface(); | 96 void DidCreateAndInitializeOutputSurface(); |
| 97 bool HasInitializedOutputSurface() const { | |
| 98 return state_machine_.HasInitializedOutputSurface(); | |
| 99 } | |
| 100 | 97 |
| 101 bool CommitPending() const { return state_machine_.CommitPending(); } | 98 bool CommitPending() const { return state_machine_.CommitPending(); } |
| 102 bool RedrawPending() const { return state_machine_.RedrawPending(); } | 99 bool RedrawPending() const { return state_machine_.RedrawPending(); } |
| 103 bool ManageTilesPending() const { | 100 bool ManageTilesPending() const { |
| 104 return state_machine_.ManageTilesPending(); | 101 return state_machine_.ManageTilesPending(); |
| 105 } | 102 } |
| 106 bool MainThreadIsInHighLatencyMode() const { | 103 bool MainThreadIsInHighLatencyMode() const { |
| 107 return state_machine_.MainThreadIsInHighLatencyMode(); | 104 return state_machine_.MainThreadIsInHighLatencyMode(); |
| 108 } | 105 } |
| 109 bool BeginImplFrameDeadlinePending() const { | 106 bool BeginImplFrameDeadlinePending() const { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 void SetupSyntheticBeginFrames(); | 222 void SetupSyntheticBeginFrames(); |
| 226 | 223 |
| 227 base::WeakPtrFactory<Scheduler> weak_factory_; | 224 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 228 | 225 |
| 229 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 226 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 230 }; | 227 }; |
| 231 | 228 |
| 232 } // namespace cc | 229 } // namespace cc |
| 233 | 230 |
| 234 #endif // CC_SCHEDULER_SCHEDULER_H_ | 231 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |