Add a new scheduler mode main thread should always be low latency.
commit21ba564c2a3630c00896e21a555983117e6f08e7
authorweiliangc <weiliangc@chromium.org>
Wed, 3 Dec 2014 16:32:33 +0000 (3 08:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Dec 2014 16:32:56 +0000 (3 16:32 +0000)
tree2deb447ca79f338423429ddd6623e62d43dcf202
parent0bfd983087bfb4c4a982797acbbbb87a914c5e73
Add a new scheduler mode main thread should always be low latency.

In this mode scheduler completes a full cycle of BeginMainFrame, Commit,
Activate, and Draw before starts on next cycle. For SingleThreadProxy,
this also means that BeginMainFrame and Commit would be atomic action.
Add tests in LayerTreeHostTest for single thread non-impl side painting
with this mode.

BUG=421923

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

Cr-Commit-Position: refs/heads/master@{#306621}
12 files changed:
cc/scheduler/scheduler.cc
cc/scheduler/scheduler_settings.cc
cc/scheduler/scheduler_settings.h
cc/scheduler/scheduler_state_machine.cc
cc/scheduler/scheduler_state_machine.h
cc/scheduler/scheduler_state_machine_unittest.cc
cc/test/layer_tree_test.cc
cc/test/layer_tree_test.h
cc/trees/layer_tree_settings.cc
cc/trees/layer_tree_settings.h
cc/trees/single_thread_proxy.cc
ui/compositor/compositor.cc