summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler_state_machine.h
diff options
context:
space:
mode:
authorweiliangc <weiliangc@chromium.org>2014-12-03 08:32:33 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-03 16:32:56 +0000
commit21ba564c2a3630c00896e21a555983117e6f08e7 (patch)
tree2deb447ca79f338423429ddd6623e62d43dcf202 /cc/scheduler/scheduler_state_machine.h
parent0bfd983087bfb4c4a982797acbbbb87a914c5e73 (diff)
downloadchromium_src-21ba564c2a3630c00896e21a555983117e6f08e7.zip
chromium_src-21ba564c2a3630c00896e21a555983117e6f08e7.tar.gz
chromium_src-21ba564c2a3630c00896e21a555983117e6f08e7.tar.bz2
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}
Diffstat (limited to 'cc/scheduler/scheduler_state_machine.h')
-rw-r--r--cc/scheduler/scheduler_state_machine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index c69c959..12f8635 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -68,6 +68,7 @@ class CC_EXPORT SchedulerStateMachine {
COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED,
COMMIT_STATE_READY_TO_COMMIT,
COMMIT_STATE_WAITING_FOR_ACTIVATION,
+ COMMIT_STATE_WAITING_FOR_DRAW,
};
static const char* CommitStateToString(CommitState state);