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

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: Fix smoothness mode Created 6 years, 11 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 069384bdcccd4585a29e107c1e6f3ee5c3841b3a..a6b9f5da0dba7472d9c0e1721f917caf26d68150 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,
enne (OOO) 2014/01/23 21:51:55 I'm not sure I follow the removal of this state.
brianderson 2014/01/23 23:31:35 At ToT, COMMIT_STATE_WAITING_FOR_FIRST_DRAW can be
};
static const char* CommitStateToString(CommitState state);
@@ -97,6 +96,7 @@ class CC_EXPORT SchedulerStateMachine {
return commit_state_ == COMMIT_STATE_FRAME_IN_PROGRESS ||
commit_state_ == COMMIT_STATE_READY_TO_COMMIT;
}
+ CommitState commit_state() const { return commit_state_; }
bool RedrawPending() const { return needs_redraw_; }
bool ManageTilesPending() const { return needs_manage_tiles_; }
@@ -224,6 +224,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 DidManageTiles();
void DidLoseOutputSurface();

Powered by Google App Engine
This is Rietveld 408576698