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

Unified Diff: cc/scheduler/scheduler_state_machine_unittest.cc

Issue 2641033002: cc: Remove unused scheduler setting. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scheduler/scheduler_state_machine.cc ('k') | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine_unittest.cc
diff --git a/cc/scheduler/scheduler_state_machine_unittest.cc b/cc/scheduler/scheduler_state_machine_unittest.cc
index 93e2cc26faa84e547c97b8c21202b6d947a22f42..aa5c4aac39a1164318196bfee92197fcbc1a2909 100644
--- a/cc/scheduler/scheduler_state_machine_unittest.cc
+++ b/cc/scheduler/scheduler_state_machine_unittest.cc
@@ -2123,32 +2123,5 @@ TEST(SchedulerStateMachineTest,
SchedulerStateMachine::ACTION_BEGIN_COMPOSITOR_FRAME_SINK_CREATION);
}
-TEST(SchedulerStateMachineTest, CompositorFrameSinkCreationWhileCommitPending) {
- SchedulerSettings settings;
- settings.abort_commit_before_compositor_frame_sink_creation = false;
- StateMachine state(settings);
- SET_UP_STATE(state);
-
- // Set up the request for a commit and start a frame.
- state.SetNeedsBeginMainFrame();
- state.OnBeginImplFrame();
- PerformAction(&state, SchedulerStateMachine::ACTION_SEND_BEGIN_MAIN_FRAME);
-
- // Lose the CompositorFrameSink.
- state.DidLoseCompositorFrameSink();
-
- // The scheduler shouldn't trigger the CompositorFrameSink creation till the
- // previous begin impl frame state is cleared from the pipeline.
- EXPECT_ACTION_UPDATE_STATE(SchedulerStateMachine::ACTION_NONE);
-
- // Cycle through the frame stages to clear the scheduler state.
- state.OnBeginImplFrameDeadline();
- state.OnBeginImplFrameIdle();
-
- // The scheduler should begin the CompositorFrameSink creation now.
- EXPECT_ACTION_UPDATE_STATE(
- SchedulerStateMachine::ACTION_BEGIN_COMPOSITOR_FRAME_SINK_CREATION);
-}
-
} // namespace
} // namespace cc
« no previous file with comments | « cc/scheduler/scheduler_state_machine.cc ('k') | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698