| 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..a788375e9e3117663683973379bc78494fa205ae 100644
|
| --- a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
|
| +++ b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
|
| @@ -47,7 +47,10 @@ void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
|
| void GpuCompositorFrameSink::SubmitCompositorFrame(
|
| const cc::LocalSurfaceId& local_surface_id,
|
| cc::CompositorFrame frame) {
|
| - support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
|
| + if (!support_->SubmitCompositorFrame(local_surface_id, std::move(frame))) {
|
| + compositor_frame_sink_binding_.Close();
|
| + OnClientConnectionLost();
|
| + }
|
| }
|
|
|
| void GpuCompositorFrameSink::BeginFrameDidNotSwap(
|
|
|