OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/display_compositor/gpu_compositor_frame_sink.h" | 5 #include "components/frame_sinks/gpu_compositor_frame_sink.h" |
6 | 6 |
7 namespace display_compositor { | 7 namespace frame_sinks { |
8 | 8 |
9 GpuCompositorFrameSink::GpuCompositorFrameSink( | 9 GpuCompositorFrameSink::GpuCompositorFrameSink( |
10 GpuCompositorFrameSinkDelegate* delegate, | 10 GpuCompositorFrameSinkDelegate* delegate, |
11 cc::SurfaceManager* surface_manager, | 11 cc::SurfaceManager* surface_manager, |
12 const cc::FrameSinkId& frame_sink_id, | 12 const cc::FrameSinkId& frame_sink_id, |
13 cc::mojom::MojoCompositorFrameSinkRequest request, | 13 cc::mojom::MojoCompositorFrameSinkRequest request, |
14 cc::mojom::MojoCompositorFrameSinkPrivateRequest | 14 cc::mojom::MojoCompositorFrameSinkPrivateRequest |
15 compositor_frame_sink_private_request, | 15 compositor_frame_sink_private_request, |
16 cc::mojom::MojoCompositorFrameSinkClientPtr client) | 16 cc::mojom::MojoCompositorFrameSinkClientPtr client) |
17 : delegate_(delegate), | 17 : delegate_(delegate), |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 private_connection_lost_); | 90 private_connection_lost_); |
91 } | 91 } |
92 | 92 |
93 void GpuCompositorFrameSink::OnPrivateConnectionLost() { | 93 void GpuCompositorFrameSink::OnPrivateConnectionLost() { |
94 private_connection_lost_ = true; | 94 private_connection_lost_ = true; |
95 // Request destruction of |this| only if both connections are lost. | 95 // Request destruction of |this| only if both connections are lost. |
96 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), | 96 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), |
97 client_connection_lost_); | 97 client_connection_lost_); |
98 } | 98 } |
99 | 99 |
100 } // namespace display_compositor | 100 } // namespace frame_sinks |
OLD | NEW |