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