| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 void SetNeedsPrepareTiles(); | 122 void SetNeedsPrepareTiles(); |
| 123 | 123 |
| 124 void SetMaxSwapsPending(int max); | 124 void SetMaxSwapsPending(int max); |
| 125 void DidSwapBuffers(); | 125 void DidSwapBuffers(); |
| 126 void DidSwapBuffersComplete(); | 126 void DidSwapBuffersComplete(); |
| 127 | 127 |
| 128 void SetImplLatencyTakesPriority(bool impl_latency_takes_priority); | 128 void SetImplLatencyTakesPriority(bool impl_latency_takes_priority); |
| 129 | 129 |
| 130 void NotifyReadyToCommit(); | 130 void NotifyReadyToCommit(); |
| 131 void BeginMainFrameAborted(bool did_handle); | 131 void BeginMainFrameAborted(CommitEarlyOutReason reason); |
| 132 | 132 |
| 133 void DidPrepareTiles(); | 133 void DidPrepareTiles(); |
| 134 void DidLoseOutputSurface(); | 134 void DidLoseOutputSurface(); |
| 135 void DidCreateAndInitializeOutputSurface(); | 135 void DidCreateAndInitializeOutputSurface(); |
| 136 | 136 |
| 137 // Tests do not want to shut down until all possible BeginMainFrames have | 137 // Tests do not want to shut down until all possible BeginMainFrames have |
| 138 // occured to prevent flakiness. | 138 // occured to prevent flakiness. |
| 139 bool MainFrameForTestingWillHappen() const { | 139 bool MainFrameForTestingWillHappen() const { |
| 140 return state_machine_.CommitPending() || | 140 return state_machine_.CommitPending() || |
| 141 state_machine_.CouldSendBeginMainFrame(); | 141 state_machine_.CouldSendBeginMainFrame(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 251 |
| 252 friend class SchedulerFrameSourcesConstructor; | 252 friend class SchedulerFrameSourcesConstructor; |
| 253 friend class TestSchedulerFrameSourcesConstructor; | 253 friend class TestSchedulerFrameSourcesConstructor; |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 255 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace cc | 258 } // namespace cc |
| 259 | 259 |
| 260 #endif // CC_SCHEDULER_SCHEDULER_H_ | 260 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |