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