Index: content/renderer/gpu/compositor_output_surface.cc |
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc |
index dd9d632bad46c66dc8511325b244b8bda55b1356..61611ca706e6039c335fd0b29e607f57fa088b05 100644 |
--- a/content/renderer/gpu/compositor_output_surface.cc |
+++ b/content/renderer/gpu/compositor_output_surface.cc |
@@ -130,6 +130,8 @@ void CompositorOutputSurface::ShortcutSwapAck( |
} |
void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) { |
+ DCHECK(!is_lost_); |
+ |
if (layout_test_mode_ && use_swap_compositor_frame_message_) { |
// This code path is here to support layout tests that are currently |
// doing a readback in the renderer instead of the browser. So they |