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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 22320019: cc: Start commit early and block on tree activation (Closed) Base URL: http://git.chromium.org/chromium/src.git@usedl26
Patch Set: Created 7 years, 4 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 | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | cc/trees/thread_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index eb59f282f49ff1c7ec44312be69a0f7bb4b06f3e..20e39c78a7b2876eee66f9c27609bc9d947b6ef9 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -55,6 +55,7 @@ class CC_EXPORT SchedulerStateMachine {
COMMIT_STATE_FRAME_IN_PROGRESS,
COMMIT_STATE_READY_TO_COMMIT,
COMMIT_STATE_WAITING_FOR_ACTIVATION,
+ COMMIT_STATE_WAITING_FOR_ACTIVATION_AND_FRAME_IN_PROGRESS,
COMMIT_STATE_WAITING_FOR_FIRST_DRAW,
};
@@ -82,7 +83,8 @@ class CC_EXPORT SchedulerStateMachine {
};
bool CommitPending() const {
- return commit_state_ == COMMIT_STATE_FRAME_IN_PROGRESS;
+ return commit_state_ == COMMIT_STATE_FRAME_IN_PROGRESS ||
+ commit_state_ == COMMIT_STATE_WAITING_FOR_ACTIVATION_AND_FRAME_IN_PROGRESS;
}
bool RedrawPending() const { return needs_redraw_; }
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698