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 CCScheduler_h | 5 #ifndef CCScheduler_h |
6 #define CCScheduler_h | 6 #define CCScheduler_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "CCFrameRateController.h" | 10 #include "CCFrameRateController.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 bool commitPending() const { return m_stateMachine.commitPending(); } | 83 bool commitPending() const { return m_stateMachine.commitPending(); } |
84 bool redrawPending() const { return m_stateMachine.redrawPending(); } | 84 bool redrawPending() const { return m_stateMachine.redrawPending(); } |
85 | 85 |
86 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); | 86 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); |
87 | 87 |
88 base::TimeTicks anticipatedDrawTime(); | 88 base::TimeTicks anticipatedDrawTime(); |
89 | 89 |
90 // CCFrameRateControllerClient implementation | 90 // CCFrameRateControllerClient implementation |
91 virtual void vsyncTick(bool throttled) OVERRIDE; | 91 virtual void vsyncTick(bool throttled) OVERRIDE; |
92 | 92 |
| 93 void renderingStats(CCRenderingStats* stats) const; |
| 94 |
93 private: | 95 private: |
94 CCScheduler(CCSchedulerClient*, PassOwnPtr<CCFrameRateController>); | 96 CCScheduler(CCSchedulerClient*, PassOwnPtr<CCFrameRateController>); |
95 | 97 |
96 void processScheduledActions(); | 98 void processScheduledActions(); |
97 | 99 |
98 CCSchedulerClient* m_client; | 100 CCSchedulerClient* m_client; |
99 OwnPtr<CCFrameRateController> m_frameRateController; | 101 OwnPtr<CCFrameRateController> m_frameRateController; |
100 CCSchedulerStateMachine m_stateMachine; | 102 CCSchedulerStateMachine m_stateMachine; |
101 bool m_insideProcessScheduledActions; | 103 bool m_insideProcessScheduledActions; |
102 | 104 |
103 DISALLOW_COPY_AND_ASSIGN(CCScheduler); | 105 DISALLOW_COPY_AND_ASSIGN(CCScheduler); |
104 }; | 106 }; |
105 | 107 |
106 } | 108 } |
107 | 109 |
108 #endif // CCScheduler_h | 110 #endif // CCScheduler_h |
OLD | NEW |