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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2654693003: Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)
Patch Set: Fix deps check 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 | « components/display_compositor/DEPS ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/gpu_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.h b/components/display_compositor/gpu_compositor_frame_sink.h
similarity index 80%
rename from services/ui/surfaces/gpu_compositor_frame_sink.h
rename to components/display_compositor/gpu_compositor_frame_sink.h
index bfe1e9ad240b189864af28f7d869a7b0f9488514..9e5ad9c706edfa6f261846a0836dd19967f77f44 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/components/display_compositor/gpu_compositor_frame_sink.h
@@ -2,8 +2,8 @@
// 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_COMPOSITOR_FRAME_SINK_H_
-#define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
+#ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
+#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
#include <memory>
#include <vector>
@@ -15,24 +15,25 @@
#include "cc/surfaces/compositor_frame_sink_support.h"
#include "cc/surfaces/compositor_frame_sink_support_client.h"
#include "cc/surfaces/referenced_surface_tracker.h"
+#include "components/display_compositor/display_compositor_export.h"
+#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace cc {
class Display;
}
-namespace ui {
-
-class DisplayCompositor;
+namespace display_compositor {
// Server side representation of a WindowSurface.
-class GpuCompositorFrameSink
+class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
: public cc::CompositorFrameSinkSupportClient,
Fady Samuel 2017/01/25 13:51:23 public NON_EXPORTED_BASE(cc::CompositorFrameSinkSu
public cc::mojom::MojoCompositorFrameSink,
public cc::mojom::MojoCompositorFrameSinkPrivate {
public:
GpuCompositorFrameSink(
- 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,
@@ -59,8 +60,9 @@ class GpuCompositorFrameSink
void OnClientConnectionLost();
void OnPrivateConnectionLost();
- DisplayCompositor* const display_compositor_;
+ GpuCompositorFrameSinkDelegate* const delegate_;
cc::CompositorFrameSinkSupport support_;
+ cc::SurfaceManager* const surface_manager_;
private:
// cc::CompositorFrameSinkSupportClient implementation:
@@ -83,6 +85,6 @@ class GpuCompositorFrameSink
DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
};
-} // namespace ui
+} // namespace display_compositor
-#endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
+#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
« no previous file with comments | « components/display_compositor/DEPS ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698