Index: cc/scheduler/scheduler_state_machine.cc |
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc |
index 1a444c9a158168283165a077085333c7b510b15e..3300b3d0a23a477bd582666bf5e89e746feb40e8 100644 |
--- a/cc/scheduler/scheduler_state_machine.cc |
+++ b/cc/scheduler/scheduler_state_machine.cc |
@@ -388,10 +388,6 @@ bool SchedulerStateMachine::ShouldAnimate() const { |
} |
bool SchedulerStateMachine::CouldSendBeginMainFrame() const { |
- // Do not send begin main frame too many times in a single frame. |
- if (send_begin_main_frame_funnel_) |
- return false; |
- |
if (!needs_commit_) |
return false; |
@@ -410,6 +406,10 @@ bool SchedulerStateMachine::ShouldSendBeginMainFrame() const { |
if (!CouldSendBeginMainFrame()) |
return false; |
+ // Do not send begin main frame too many times in a single frame. |
+ if (send_begin_main_frame_funnel_) |
+ return false; |
+ |
// Only send BeginMainFrame when there isn't another commit pending already. |
if (commit_state_ != COMMIT_STATE_IDLE) |
return false; |