| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 void DidSwapUseIncompleteTile(); | 84 void DidSwapUseIncompleteTile(); |
| 85 | 85 |
| 86 void FinishCommit(); | 86 void FinishCommit(); |
| 87 void BeginFrameAbortedByMainThread(); | 87 void BeginFrameAbortedByMainThread(); |
| 88 | 88 |
| 89 void SetMaxFramesPending(int max); | 89 void SetMaxFramesPending(int max); |
| 90 int MaxFramesPending() const; | 90 int MaxFramesPending() const; |
| 91 int NumFramesPendingForTesting() const; | 91 int NumFramesPendingForTesting() const; |
| 92 | 92 |
| 93 bool swap_buffers_complete_supported() const; | |
| 94 void SetSwapBuffersCompleteSupported(bool supported); | |
| 95 void DidSwapBuffersComplete(); | 93 void DidSwapBuffersComplete(); |
| 96 | 94 |
| 97 void DidLoseOutputSurface(); | 95 void DidLoseOutputSurface(); |
| 98 void DidCreateAndInitializeOutputSurface(); | 96 void DidCreateAndInitializeOutputSurface(); |
| 99 bool HasInitializedOutputSurface() const { | 97 bool HasInitializedOutputSurface() const { |
| 100 return state_machine_.HasInitializedOutputSurface(); | 98 return state_machine_.HasInitializedOutputSurface(); |
| 101 } | 99 } |
| 102 | 100 |
| 103 bool CommitPending() const { return state_machine_.CommitPending(); } | 101 bool CommitPending() const { return state_machine_.CommitPending(); } |
| 104 bool RedrawPending() const { return state_machine_.RedrawPending(); } | 102 bool RedrawPending() const { return state_machine_.RedrawPending(); } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 129 scoped_ptr<FrameRateController> frame_rate_controller_; | 127 scoped_ptr<FrameRateController> frame_rate_controller_; |
| 130 SchedulerStateMachine state_machine_; | 128 SchedulerStateMachine state_machine_; |
| 131 bool inside_process_scheduled_actions_; | 129 bool inside_process_scheduled_actions_; |
| 132 | 130 |
| 133 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 131 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace cc | 134 } // namespace cc |
| 137 | 135 |
| 138 #endif // CC_SCHEDULER_SCHEDULER_H_ | 136 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |