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_FIRST_DRAW, | |
72 }; | 71 }; |
73 static const char* CommitStateToString(CommitState state); | 72 static const char* CommitStateToString(CommitState state); |
74 | 73 |
75 enum ForcedRedrawOnTimeoutState { | 74 enum ForcedRedrawOnTimeoutState { |
76 FORCED_REDRAW_STATE_IDLE, | 75 FORCED_REDRAW_STATE_IDLE, |
77 FORCED_REDRAW_STATE_WAITING_FOR_COMMIT, | 76 FORCED_REDRAW_STATE_WAITING_FOR_COMMIT, |
78 FORCED_REDRAW_STATE_WAITING_FOR_ACTIVATION, | 77 FORCED_REDRAW_STATE_WAITING_FOR_ACTIVATION, |
79 FORCED_REDRAW_STATE_WAITING_FOR_DRAW, | 78 FORCED_REDRAW_STATE_WAITING_FOR_DRAW, |
80 }; | 79 }; |
81 static const char* ForcedRedrawOnTimeoutStateToString( | 80 static const char* ForcedRedrawOnTimeoutStateToString( |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 bool skip_begin_main_frame_to_reduce_latency_; | 313 bool skip_begin_main_frame_to_reduce_latency_; |
315 bool continuous_painting_; | 314 bool continuous_painting_; |
316 | 315 |
317 private: | 316 private: |
318 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); | 317 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); |
319 }; | 318 }; |
320 | 319 |
321 } // namespace cc | 320 } // namespace cc |
322 | 321 |
323 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ | 322 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ |
OLD | NEW |