| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void SetThrottleFrameProduction(bool throttle); | 84 void SetThrottleFrameProduction(bool throttle); |
| 85 | 85 |
| 86 void SetNeedsCommit(); | 86 void SetNeedsCommit(); |
| 87 | 87 |
| 88 void SetNeedsRedraw(); | 88 void SetNeedsRedraw(); |
| 89 | 89 |
| 90 void SetNeedsAnimate(); | 90 void SetNeedsAnimate(); |
| 91 | 91 |
| 92 void SetNeedsPrepareTiles(); | 92 void SetNeedsPrepareTiles(); |
| 93 | 93 |
| 94 void SetWaitForReadyToDraw(); | |
| 95 | |
| 96 void SetMaxSwapsPending(int max); | 94 void SetMaxSwapsPending(int max); |
| 97 void DidSwapBuffers(); | 95 void DidSwapBuffers(); |
| 98 void DidSwapBuffersComplete(); | 96 void DidSwapBuffersComplete(); |
| 99 | 97 |
| 100 void SetImplLatencyTakesPriority(bool impl_latency_takes_priority); | 98 void SetImplLatencyTakesPriority(bool impl_latency_takes_priority); |
| 101 | 99 |
| 102 void NotifyReadyToCommit(); | 100 void NotifyReadyToCommit(); |
| 103 void BeginMainFrameAborted(CommitEarlyOutReason reason); | 101 void BeginMainFrameAborted(CommitEarlyOutReason reason); |
| 104 void DidCommit(); | 102 void DidCommit(); |
| 105 | 103 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 226 } |
| 229 | 227 |
| 230 base::WeakPtrFactory<Scheduler> weak_factory_; | 228 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 231 | 229 |
| 232 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 230 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 233 }; | 231 }; |
| 234 | 232 |
| 235 } // namespace cc | 233 } // namespace cc |
| 236 | 234 |
| 237 #endif // CC_SCHEDULER_SCHEDULER_H_ | 235 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |