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

Unified Diff: components/display_compositor/gpu_display_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_display_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_display_compositor_frame_sink.h b/components/display_compositor/gpu_display_compositor_frame_sink.h
similarity index 63%
rename from services/ui/surfaces/gpu_display_compositor_frame_sink.h
rename to components/display_compositor/gpu_display_compositor_frame_sink.h
index 15bba8a58fe008c23d4d6a015134eaf6c6e1a644..588ef754612b7d05ac9ef1cc9d1c5c452e2d7d3a 100644
--- a/services/ui/surfaces/gpu_display_compositor_frame_sink.h
+++ b/components/display_compositor/gpu_display_compositor_frame_sink.h
@@ -2,19 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
-#define SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
+#include "components/display_compositor/gpu_compositor_frame_sink.h"
+#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
-#include "services/ui/surfaces/gpu_compositor_frame_sink.h"
-namespace ui {
+namespace display_compositor {
-class GpuDisplayCompositorFrameSink : public GpuCompositorFrameSink,
- public cc::mojom::DisplayPrivate {
+class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink
+ : public GpuCompositorFrameSink,
+ public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate) {
public:
GpuDisplayCompositorFrameSink(
- DisplayCompositor* display_compositor,
+ GpuCompositorFrameSinkDelegate* delegate,
+ cc::SurfaceManager* surface_manager,
const cc::FrameSinkId& frame_sink_id,
std::unique_ptr<cc::Display> display,
std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
@@ -38,6 +41,6 @@ class GpuDisplayCompositorFrameSink : public GpuCompositorFrameSink,
DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
};
-} // namespace ui
+} // namespace display_compositor
-#endif // SERVICES_UI_SURFACES_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698