| 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 #include "cc/scheduler/scheduler_state_machine.h" | 5 #include "cc/scheduler/scheduler_state_machine.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "cc/output/begin_frame_args.h" | 10 #include "cc/output/begin_frame_args.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return; | 197 return; |
| 198 | 198 |
| 199 case SchedulerStateMachine::ACTION_ACTIVATE_SYNC_TREE: | 199 case SchedulerStateMachine::ACTION_ACTIVATE_SYNC_TREE: |
| 200 sm->WillActivate(); | 200 sm->WillActivate(); |
| 201 return; | 201 return; |
| 202 | 202 |
| 203 case SchedulerStateMachine::ACTION_SEND_BEGIN_MAIN_FRAME: | 203 case SchedulerStateMachine::ACTION_SEND_BEGIN_MAIN_FRAME: |
| 204 sm->WillSendBeginMainFrame(); | 204 sm->WillSendBeginMainFrame(); |
| 205 return; | 205 return; |
| 206 | 206 |
| 207 case SchedulerStateMachine::ACTION_DO_IDLE_WORK: |
| 208 sm->WillDoIdleWork(); |
| 209 return; |
| 210 |
| 207 case SchedulerStateMachine::ACTION_COMMIT: { | 211 case SchedulerStateMachine::ACTION_COMMIT: { |
| 208 bool commit_has_no_updates = false; | 212 bool commit_has_no_updates = false; |
| 209 sm->WillCommit(commit_has_no_updates); | 213 sm->WillCommit(commit_has_no_updates); |
| 210 return; | 214 return; |
| 211 } | 215 } |
| 212 | 216 |
| 213 case SchedulerStateMachine::ACTION_DRAW_FORCED: | 217 case SchedulerStateMachine::ACTION_DRAW_FORCED: |
| 214 case SchedulerStateMachine::ACTION_DRAW_IF_POSSIBLE: { | 218 case SchedulerStateMachine::ACTION_DRAW_IF_POSSIBLE: { |
| 215 sm->WillDraw(); | 219 sm->WillDraw(); |
| 216 sm->DidDraw(sm->draw_result_for_test()); | 220 sm->DidDraw(sm->draw_result_for_test()); |
| (...skipping 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2727 state.OnBeginImplFrameDeadline(); | 2731 state.OnBeginImplFrameDeadline(); |
| 2728 EXPECT_ACTION_UPDATE_STATE(SchedulerStateMachine::ACTION_NONE); | 2732 EXPECT_ACTION_UPDATE_STATE(SchedulerStateMachine::ACTION_NONE); |
| 2729 EXPECT_SEQUENCE_NUMBERS(10u, 10u, 10u, BeginFrameArgs::kInvalidFrameNumber, | 2733 EXPECT_SEQUENCE_NUMBERS(10u, 10u, 10u, BeginFrameArgs::kInvalidFrameNumber, |
| 2730 BeginFrameArgs::kInvalidFrameNumber); | 2734 BeginFrameArgs::kInvalidFrameNumber); |
| 2731 state.OnBeginImplFrameIdle(); | 2735 state.OnBeginImplFrameIdle(); |
| 2732 EXPECT_ACTION_UPDATE_STATE(SchedulerStateMachine::ACTION_NONE); | 2736 EXPECT_ACTION_UPDATE_STATE(SchedulerStateMachine::ACTION_NONE); |
| 2733 } | 2737 } |
| 2734 | 2738 |
| 2735 } // namespace | 2739 } // namespace |
| 2736 } // namespace cc | 2740 } // namespace cc |
| OLD | NEW |