| Index: services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc
|
| diff --git a/services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc b/services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6b6567a9383c94d78ef399e3a27264674075db71
|
| --- /dev/null
|
| +++ b/services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "services/ui/surfaces/gpu_offscreen_compositor_frame_sink.h"
|
| +
|
| +namespace ui {
|
| +
|
| +GpuOffscreenCompositorFrameSink::GpuOffscreenCompositorFrameSink(
|
| + DisplayCompositor* display_compositor,
|
| + const cc::FrameSinkId& frame_sink_id,
|
| + cc::mojom::MojoCompositorFrameSinkRequest request,
|
| + cc::mojom::MojoCompositorFrameSinkPrivateRequest
|
| + compositor_frame_sink_private_request,
|
| + cc::mojom::MojoCompositorFrameSinkClientPtr client)
|
| + : GpuCompositorFrameSink(display_compositor,
|
| + frame_sink_id,
|
| + nullptr,
|
| + nullptr,
|
| + std::move(compositor_frame_sink_private_request),
|
| + std::move(client)),
|
| + binding_(this, std::move(request)) {
|
| + binding_.set_connection_error_handler(
|
| + base::Bind(&GpuOffscreenCompositorFrameSink::OnClientConnectionLost,
|
| + base::Unretained(this)));
|
| +}
|
| +
|
| +GpuOffscreenCompositorFrameSink::~GpuOffscreenCompositorFrameSink() = default;
|
| +
|
| +} // namespace ui
|
|
|