Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: components/viz/frame_sinks/gpu_compositor_frame_sink.cc

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Fixed dchecks Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..285357eb298b115fa8259f5ab7b0b0f207fd3d1f 100644
--- a/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
+++ b/components/viz/frame_sinks/gpu_compositor_frame_sink.cc
@@ -47,7 +47,12 @@ 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));
+ bool result =
danakj 2017/05/19 19:31:39 it's okay to keep this without the bool var, I thi
+ support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
+ if (!result) {
+ compositor_frame_sink_binding_.Close();
+ OnClientConnectionLost();
+ }
}
void GpuCompositorFrameSink::BeginFrameDidNotSwap(

Powered by Google App Engine
This is Rietveld 408576698