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 CCSchedulerStateMachine_h | 5 #ifndef CCSchedulerStateMachine_h |
6 #define CCSchedulerStateMachine_h | 6 #define CCSchedulerStateMachine_h |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <wtf/Noncopyable.h> | 9 |
| 10 #include "base/basictypes.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 // The CCSchedulerStateMachine decides how to coordinate main thread activites | 14 // The CCSchedulerStateMachine decides how to coordinate main thread activites |
14 // like painting/running javascript with rendering and input activities on the | 15 // like painting/running javascript with rendering and input activities on the |
15 // impl thread. | 16 // impl thread. |
16 // | 17 // |
17 // The state machine tracks internal state but is also influenced by external st
ate. | 18 // The state machine tracks internal state but is also influenced by external st
ate. |
18 // Internal state includes things like whether a frame has been requested, while | 19 // Internal state includes things like whether a frame has been requested, while |
19 // external state includes things like the current time being near to the vblank
time. | 20 // external state includes things like the current time being near to the vblank
time. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool m_needsCommit; | 145 bool m_needsCommit; |
145 bool m_needsForcedCommit; | 146 bool m_needsForcedCommit; |
146 bool m_mainThreadNeedsLayerTextures; | 147 bool m_mainThreadNeedsLayerTextures; |
147 bool m_insideVSync; | 148 bool m_insideVSync; |
148 bool m_visible; | 149 bool m_visible; |
149 bool m_canBeginFrame; | 150 bool m_canBeginFrame; |
150 bool m_canDraw; | 151 bool m_canDraw; |
151 bool m_drawIfPossibleFailed; | 152 bool m_drawIfPossibleFailed; |
152 TextureState m_textureState; | 153 TextureState m_textureState; |
153 ContextState m_contextState; | 154 ContextState m_contextState; |
| 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(CCSchedulerStateMachine); |
154 }; | 157 }; |
155 | 158 |
156 } | 159 } |
157 | 160 |
158 #endif // CCSchedulerStateMachine_h | 161 #endif // CCSchedulerStateMachine_h |
OLD | NEW |