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 | |
82 void setSwapBuffersCompleteSupported(bool); | 80 void setSwapBuffersCompleteSupported(bool); |
83 void didSwapBuffersComplete(); | 81 void didSwapBuffersComplete(); |
84 | 82 |
85 void didLoseOutputSurface(); | 83 void didLoseOutputSurface(); |
86 void didRecreateOutputSurface(); | 84 void didRecreateOutputSurface(); |
87 | 85 |
88 bool commitPending() const { return m_stateMachine.commitPending(); } | 86 bool commitPending() const { return m_stateMachine.commitPending(); } |
89 bool redrawPending() const { return m_stateMachine.redrawPending(); } | 87 bool redrawPending() const { return m_stateMachine.redrawPending(); } |
90 | 88 |
91 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); | 89 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv
al); |
(...skipping 12 matching lines...) Expand all Loading... |
104 scoped_ptr<FrameRateController> m_frameRateController; | 102 scoped_ptr<FrameRateController> m_frameRateController; |
105 SchedulerStateMachine m_stateMachine; | 103 SchedulerStateMachine m_stateMachine; |
106 bool m_insideProcessScheduledActions; | 104 bool m_insideProcessScheduledActions; |
107 | 105 |
108 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 106 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
109 }; | 107 }; |
110 | 108 |
111 } // namespace cc | 109 } // namespace cc |
112 | 110 |
113 #endif // CC_SCHEDULER_H_ | 111 #endif // CC_SCHEDULER_H_ |
OLD | NEW |