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_SCHEDULER_STATE_MACHINE_H_ | 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 BEGIN_IMPL_FRAME_STATE_INSIDE_DEADLINE, | 61 BEGIN_IMPL_FRAME_STATE_INSIDE_DEADLINE, |
62 }; | 62 }; |
63 static const char* BeginImplFrameStateToString(BeginImplFrameState state); | 63 static const char* BeginImplFrameStateToString(BeginImplFrameState state); |
64 | 64 |
65 enum CommitState { | 65 enum CommitState { |
66 COMMIT_STATE_IDLE, | 66 COMMIT_STATE_IDLE, |
67 COMMIT_STATE_BEGIN_MAIN_FRAME_SENT, | 67 COMMIT_STATE_BEGIN_MAIN_FRAME_SENT, |
68 COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED, | 68 COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED, |
69 COMMIT_STATE_READY_TO_COMMIT, | 69 COMMIT_STATE_READY_TO_COMMIT, |
70 COMMIT_STATE_WAITING_FOR_ACTIVATION, | 70 COMMIT_STATE_WAITING_FOR_ACTIVATION, |
| 71 COMMIT_STATE_WAITING_FOR_DRAW, |
71 }; | 72 }; |
72 static const char* CommitStateToString(CommitState state); | 73 static const char* CommitStateToString(CommitState state); |
73 | 74 |
74 enum ForcedRedrawOnTimeoutState { | 75 enum ForcedRedrawOnTimeoutState { |
75 FORCED_REDRAW_STATE_IDLE, | 76 FORCED_REDRAW_STATE_IDLE, |
76 FORCED_REDRAW_STATE_WAITING_FOR_COMMIT, | 77 FORCED_REDRAW_STATE_WAITING_FOR_COMMIT, |
77 FORCED_REDRAW_STATE_WAITING_FOR_ACTIVATION, | 78 FORCED_REDRAW_STATE_WAITING_FOR_ACTIVATION, |
78 FORCED_REDRAW_STATE_WAITING_FOR_DRAW, | 79 FORCED_REDRAW_STATE_WAITING_FOR_DRAW, |
79 }; | 80 }; |
80 static const char* ForcedRedrawOnTimeoutStateToString( | 81 static const char* ForcedRedrawOnTimeoutStateToString( |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 bool impl_latency_takes_priority_on_battery_; | 325 bool impl_latency_takes_priority_on_battery_; |
325 bool children_need_begin_frames_; | 326 bool children_need_begin_frames_; |
326 | 327 |
327 private: | 328 private: |
328 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 329 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
329 }; | 330 }; |
330 | 331 |
331 } // namespace cc | 332 } // namespace cc |
332 | 333 |
333 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 334 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |