cc: Schedule a late deadline when swap throttled, allow rescheduling.
commit5d8bb1d2a56a634ed5dbc062912e52bf2bdcb2ba
authorsunnyps <sunnyps@chromium.org>
Mon, 8 Dec 2014 20:48:10 +0000 (8 12:48 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Dec 2014 20:48:58 +0000 (8 20:48 +0000)
tree02642bcd897fd5279031ddc8e004fbc290fe684f
parent0134ed1292b006e48e293a8863b1dff0bed5e871
cc: Schedule a late deadline when swap throttled, allow rescheduling.

If the renderer is swap throttled, the scheduler should wait until a
swap ack and then reschedule the deadline if necessary. This is to
avoid cases where we trigger the deadline too early and don't draw in
that frame.

BUG=437932

Review URL: https://codereview.chromium.org/775893006

Cr-Commit-Position: refs/heads/master@{#307329}
cc/scheduler/scheduler.cc
cc/scheduler/scheduler.h
cc/scheduler/scheduler_state_machine.cc
cc/scheduler/scheduler_state_machine.h
cc/scheduler/scheduler_state_machine_unittest.cc
cc/scheduler/scheduler_unittest.cc
cc/trees/layer_tree_host_unittest.cc