Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: cc/CCSchedulerStateMachine.h

Issue 10985088: cc: Switch it to use DISALLOW_COPY_AND_ASSIGN macro from base/ library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
10 9
11 namespace cc { 10 namespace cc {
12 11
13 // The CCSchedulerStateMachine decides how to coordinate main thread activites 12 // The CCSchedulerStateMachine decides how to coordinate main thread activites
14 // like painting/running javascript with rendering and input activities on the 13 // like painting/running javascript with rendering and input activities on the
15 // impl thread. 14 // impl thread.
16 // 15 //
17 // The state machine tracks internal state but is also influenced by external st ate. 16 // 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 17 // 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. 18 // external state includes things like the current time being near to the vblank time.
20 // 19 //
21 // The scheduler seperates "what to do next" from the updating of its internal s tate to 20 // The scheduler seperates "what to do next" from the updating of its internal s tate to
22 // make testing cleaner. 21 // make testing cleaner.
23 class CCSchedulerStateMachine { 22 class CCSchedulerStateMachine {
jamesr 2012/09/28 20:37:06 this class should be noncopyable as well
tfarina 2012/09/28 20:48:04 Done.
24 public: 23 public:
25 CCSchedulerStateMachine(); 24 CCSchedulerStateMachine();
26 25
27 enum CommitState { 26 enum CommitState {
28 COMMIT_STATE_IDLE, 27 COMMIT_STATE_IDLE,
29 COMMIT_STATE_FRAME_IN_PROGRESS, 28 COMMIT_STATE_FRAME_IN_PROGRESS,
30 COMMIT_STATE_READY_TO_COMMIT, 29 COMMIT_STATE_READY_TO_COMMIT,
31 COMMIT_STATE_WAITING_FOR_FIRST_DRAW, 30 COMMIT_STATE_WAITING_FOR_FIRST_DRAW,
32 }; 31 };
33 32
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool m_canBeginFrame; 148 bool m_canBeginFrame;
150 bool m_canDraw; 149 bool m_canDraw;
151 bool m_drawIfPossibleFailed; 150 bool m_drawIfPossibleFailed;
152 TextureState m_textureState; 151 TextureState m_textureState;
153 ContextState m_contextState; 152 ContextState m_contextState;
154 }; 153 };
155 154
156 } 155 }
157 156
158 #endif // CCSchedulerStateMachine_h 157 #endif // CCSchedulerStateMachine_h
OLDNEW
« cc/CCLayerTreeHost.h ('K') | « cc/CCScheduler.h ('k') | cc/CCScopedTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698