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_H_ | 5 #ifndef CC_SCHEDULER_H_ |
6 #define CC_SCHEDULER_H_ | 6 #define CC_SCHEDULER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 void setMainThreadNeedsLayerTextures(); | 72 void setMainThreadNeedsLayerTextures(); |
73 | 73 |
74 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i
f we are not visible. | 74 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i
f we are not visible. |
75 void setNeedsForcedRedraw(); | 75 void setNeedsForcedRedraw(); |
76 | 76 |
77 void beginFrameComplete(); | 77 void beginFrameComplete(); |
78 void beginFrameAborted(); | 78 void beginFrameAborted(); |
79 | 79 |
80 void setMaxFramesPending(int); | 80 void setMaxFramesPending(int); |
| 81 int maxFramesPending() const; |
| 82 |
81 void setSwapBuffersCompleteSupported(bool); | 83 void setSwapBuffersCompleteSupported(bool); |
82 void didSwapBuffersComplete(); | 84 void didSwapBuffersComplete(); |
83 | 85 |
84 void didLoseOutputSurface(); | 86 void didLoseOutputSurface(); |
85 void didRecreateOutputSurface(); | 87 void didRecreateOutputSurface(); |
86 | 88 |
87 bool commitPending() const { return m_stateMachine.commitPending(); } | 89 bool commitPending() const { return m_stateMachine.commitPending(); } |
88 bool redrawPending() const { return m_stateMachine.redrawPending(); } | 90 bool redrawPending() const { return m_stateMachine.redrawPending(); } |
89 | 91 |
90 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); | 92 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); |
(...skipping 12 matching lines...) Expand all Loading... |
103 scoped_ptr<FrameRateController> m_frameRateController; | 105 scoped_ptr<FrameRateController> m_frameRateController; |
104 SchedulerStateMachine m_stateMachine; | 106 SchedulerStateMachine m_stateMachine; |
105 bool m_insideProcessScheduledActions; | 107 bool m_insideProcessScheduledActions; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 109 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace cc | 112 } // namespace cc |
111 | 113 |
112 #endif // CC_SCHEDULER_H_ | 114 #endif // CC_SCHEDULER_H_ |
OLD | NEW |