Index: cc/scheduler/scheduler_state_machine.cc |
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc |
index 41de95dc2b61e06566046cb38aeb52fbe92d1d7b..15b6597f7ae5116c4aeb9a04cdbb14b85489b52a 100644 |
--- a/cc/scheduler/scheduler_state_machine.cc |
+++ b/cc/scheduler/scheduler_state_machine.cc |
@@ -872,9 +872,9 @@ bool SchedulerStateMachine::ShouldTriggerBeginImplFrameDeadlineImmediately() |
if (begin_impl_frame_state_ != BEGIN_IMPL_FRAME_STATE_INSIDE_BEGIN_FRAME) |
return false; |
- // If we've lost the output surface, end the current BeginImplFrame ASAP |
- // so we can start creating the next output surface. |
- if (output_surface_state_ == OUTPUT_SURFACE_LOST) |
+ // If things are being aborted, end the current BeginImplFrame ASAP so we can |
+ // unblock creating the next output surface. |
+ if (PendingDrawsShouldBeAborted()) |
return true; |
// SwapAck throttle the deadline since we wont draw and swap anyway. |