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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 23907006: cc: Allow sending BeginMainFrame before draw or activation (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedDeadline3
Patch Set: Block main thread from state machine; remove completion event; Created 7 years, 3 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
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 9655c93453a3a19c978eac4d65df18eadc0bde7b..38888b1d415e8db348071172eb997ea35d990028 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -61,7 +61,6 @@ class CC_EXPORT SchedulerStateMachine {
COMMIT_STATE_IDLE,
COMMIT_STATE_FRAME_IN_PROGRESS,
COMMIT_STATE_READY_TO_COMMIT,
- COMMIT_STATE_WAITING_FOR_FIRST_DRAW,
};
static const char* CommitStateToString(CommitState state);
@@ -192,6 +191,9 @@ class CC_EXPORT SchedulerStateMachine {
void NotifyReadyToActivate();
bool has_pending_tree() const { return has_pending_tree_; }
+ bool active_tree_needs_first_draw() const {
+ return active_tree_needs_first_draw_;
+ }
void DidLoseOutputSurface();
void DidCreateAndInitializeOutputSurface();

Powered by Google App Engine
This is Rietveld 408576698