Index: components/viz/frame_sinks/gpu_compositor_frame_sink.cc |
diff --git a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc |
index 81acb033feac9d9e22793a384d1266586768d906..4f8870cce3d9a4b54d39e7a2536ff6e21e94d6b7 100644 |
--- a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc |
+++ b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc |
@@ -86,6 +86,11 @@ void GpuCompositorFrameSink::WillDrawSurface( |
const cc::LocalSurfaceId& local_surface_id, |
const gfx::Rect& damage_rect) {} |
+void GpuCompositorFrameSink::DidRejectCompositorFrame() { |
+ compositor_frame_sink_binding_.Close(); |
+ client_connection_lost_ = true; |
+} |
+ |
void GpuCompositorFrameSink::OnClientConnectionLost() { |
client_connection_lost_ = true; |
// Request destruction of |this| only if both connections are lost. |