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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 2339633003: Reland of cc: Remove frame queuing from the scheduler. (Closed)
Patch Set: prevent draw if commit is pending Created 4 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 6fd86a66e2ff4b0bb86995ee63a708bea1bc470d..16ee4d6b4347993e8af86e944202422f71389e46 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -82,8 +82,6 @@ class CC_EXPORT SchedulerStateMachine {
BEGIN_MAIN_FRAME_STATE_SENT,
BEGIN_MAIN_FRAME_STATE_STARTED,
BEGIN_MAIN_FRAME_STATE_READY_TO_COMMIT,
- BEGIN_MAIN_FRAME_STATE_WAITING_FOR_ACTIVATION,
- BEGIN_MAIN_FRAME_STATE_WAITING_FOR_DRAW,
};
static const char* BeginMainFrameStateToString(BeginMainFrameState state);
@@ -156,6 +154,9 @@ class CC_EXPORT SchedulerStateMachine {
// TODO(sunnyps): Rename OnBeginImplFrameDeadline to OnDraw or similar.
void OnBeginImplFrameDeadline();
void OnBeginImplFrameIdle();
+
+ int current_frame_number() const { return current_frame_number_; }
+
BeginImplFrameState begin_impl_frame_state() const {
return begin_impl_frame_state_;
}

Powered by Google App Engine
This is Rietveld 408576698