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

Unified Diff: components/display_compositor/gpu_offscreen_compositor_frame_sink.h

Issue 2651283004: Reland 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
Index: components/display_compositor/gpu_offscreen_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_offscreen_compositor_frame_sink.h b/components/display_compositor/gpu_offscreen_compositor_frame_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..6720a6eae8630112690af5c04b1394fec22085b0
--- /dev/null
+++ b/components/display_compositor/gpu_offscreen_compositor_frame_sink.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_
+
+#include "components/display_compositor/display_compositor_export.h"
+#include "components/display_compositor/gpu_compositor_frame_sink.h"
+#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
+
+namespace display_compositor {
+
+class DISPLAY_COMPOSITOR_EXPORT GpuOffscreenCompositorFrameSink
+ : public GpuCompositorFrameSink {
+ public:
+ GpuOffscreenCompositorFrameSink(
+ GpuCompositorFrameSinkDelegate* delegate,
+ cc::SurfaceManager* surface_manager,
+ const cc::FrameSinkId& frame_sink_id,
+ cc::mojom::MojoCompositorFrameSinkRequest request,
+ cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
+ cc::mojom::MojoCompositorFrameSinkClientPtr client);
+
+ ~GpuOffscreenCompositorFrameSink() override;
+
+ private:
+ mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuOffscreenCompositorFrameSink);
+};
+
+} // namespace display_compositor
+
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698