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

Unified Diff: services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc

Issue 2651213004: Revert of Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « services/ui/surfaces/gpu_offscreen_compositor_frame_sink.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « services/ui/surfaces/gpu_offscreen_compositor_frame_sink.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698