Index: cc/scheduler/scheduler_state_machine.cc |
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc |
index 348f833618494a327342783f5bbf09276bb1848a..c512987bd23f501abdaf1fceab783945f8dc1ae4 100644 |
--- a/cc/scheduler/scheduler_state_machine.cc |
+++ b/cc/scheduler/scheduler_state_machine.cc |
@@ -827,9 +827,9 @@ |
if (begin_impl_frame_state_ != BEGIN_IMPL_FRAME_STATE_INSIDE_BEGIN_FRAME) |
return false; |
- // If things are being aborted, end the current BeginImplFrame ASAP so we can |
- // unblock creating the next output surface. |
- if (PendingDrawsShouldBeAborted()) |
+ // 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) |
return true; |
// SwapAck throttle the deadline since we wont draw and swap anyway. |