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 85160ed1c482f5e0cd89cc881e542d06f3312a69..af6d83a0d5e3028b87d4c1f664d9acc2ada5bf10 100644 |
--- a/cc/scheduler/scheduler_state_machine_unittest.cc |
+++ b/cc/scheduler/scheduler_state_machine_unittest.cc |
@@ -1823,5 +1823,20 @@ TEST(SchedulerStateMachineTest, TestSetNeedsAnimateAfterAnimate) { |
SchedulerStateMachine::ACTION_DRAW_AND_SWAP_IF_POSSIBLE); |
} |
+TEST(SchedulerStateMachineTest, TestForwardBeginFramesToChildren) { |
+ SchedulerSettings settings; |
+ settings.forward_begin_frames_to_children = true; |
+ StateMachine state(settings); |
+ state.SetCanStart(); |
+ state.UpdateState(state.NextAction()); |
+ state.CreateAndInitializeOutputSurfaceWithActivatedCommit(); |
+ state.SetVisible(true); |
+ state.SetCanDraw(true); |
+ |
+ EXPECT_FALSE(state.BeginFrameNeeded()); |
+ state.SetChildrenNeedBeginFrames(true); |
+ EXPECT_TRUE(state.BeginFrameNeeded()); |
+} |
+ |
} // namespace |
} // namespace cc |