| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/display_compositor/gpu_offscreen_compositor_frame_sink.h" | |
| 6 | |
| 7 namespace display_compositor { | |
| 8 | |
| 9 GpuOffscreenCompositorFrameSink::GpuOffscreenCompositorFrameSink( | |
| 10 GpuCompositorFrameSinkDelegate* delegate, | |
| 11 cc::SurfaceManager* surface_manager, | |
| 12 const cc::FrameSinkId& frame_sink_id, | |
| 13 cc::mojom::MojoCompositorFrameSinkRequest request, | |
| 14 cc::mojom::MojoCompositorFrameSinkPrivateRequest | |
| 15 compositor_frame_sink_private_request, | |
| 16 cc::mojom::MojoCompositorFrameSinkClientPtr client) | |
| 17 : GpuCompositorFrameSink(delegate, | |
| 18 surface_manager, | |
| 19 frame_sink_id, | |
| 20 nullptr, | |
| 21 nullptr, | |
| 22 std::move(compositor_frame_sink_private_request), | |
| 23 std::move(client)), | |
| 24 binding_(this, std::move(request)) { | |
| 25 binding_.set_connection_error_handler( | |
| 26 base::Bind(&GpuOffscreenCompositorFrameSink::OnClientConnectionLost, | |
| 27 base::Unretained(this))); | |
| 28 } | |
| 29 | |
| 30 GpuOffscreenCompositorFrameSink::~GpuOffscreenCompositorFrameSink() = default; | |
| 31 | |
| 32 } // namespace display_compositor | |
| OLD | NEW |