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; |
93 void SetSwapBuffersCompleteSupported(bool supported); | 94 void SetSwapBuffersCompleteSupported(bool supported); |
94 void DidSwapBuffersComplete(); | 95 void DidSwapBuffersComplete(); |
95 | 96 |
96 void DidLoseOutputSurface(); | 97 void DidLoseOutputSurface(); |
97 void DidCreateAndInitializeOutputSurface(); | 98 void DidCreateAndInitializeOutputSurface(); |
98 bool HasInitializedOutputSurface() const { | 99 bool HasInitializedOutputSurface() const { |
99 return state_machine_.HasInitializedOutputSurface(); | 100 return state_machine_.HasInitializedOutputSurface(); |
100 } | 101 } |
101 | 102 |
102 bool CommitPending() const { return state_machine_.CommitPending(); } | 103 bool CommitPending() const { return state_machine_.CommitPending(); } |
(...skipping 25 matching lines...) Expand all Loading... |
128 scoped_ptr<FrameRateController> frame_rate_controller_; | 129 scoped_ptr<FrameRateController> frame_rate_controller_; |
129 SchedulerStateMachine state_machine_; | 130 SchedulerStateMachine state_machine_; |
130 bool inside_process_scheduled_actions_; | 131 bool inside_process_scheduled_actions_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 133 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace cc | 136 } // namespace cc |
136 | 137 |
137 #endif // CC_SCHEDULER_SCHEDULER_H_ | 138 #endif // CC_SCHEDULER_SCHEDULER_H_ |
OLD | NEW |