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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2710703005: GpuDisplayCompositorFrameSink => GpuRootCompositorFrameSink (Closed)
Patch Set: Addressed Dana's comments Created 3 years, 10 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/BUILD.gn ('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/components/display_compositor/gpu_compositor_frame_sink.h b/components/display_compositor/gpu_compositor_frame_sink.h
index c724539d1067c63c9a990a5b785689eb5eb284bd..761acdd868e58f083300fc4915ae178aa31a844b 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.h
+++ b/components/display_compositor/gpu_compositor_frame_sink.h
@@ -28,7 +28,9 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
public:
GpuCompositorFrameSink(
GpuCompositorFrameSinkDelegate* delegate,
- std::unique_ptr<cc::CompositorFrameSinkSupport>,
+ cc::SurfaceManager* surface_manager,
+ const cc::FrameSinkId& frame_sink_id,
+ cc::mojom::MojoCompositorFrameSinkRequest request,
cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client);
@@ -50,13 +52,6 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
void RequestCopyOfSurface(
std::unique_ptr<cc::CopyOutputRequest> request) override;
- protected:
- void OnClientConnectionLost();
- void OnPrivateConnectionLost();
-
- GpuCompositorFrameSinkDelegate* const delegate_;
- std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
-
private:
// cc::CompositorFrameSinkSupportClient implementation:
void DidReceiveCompositorFrameAck() override;
@@ -65,10 +60,18 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
const gfx::Rect& damage_rect) override;
+ void OnClientConnectionLost();
+ void OnPrivateConnectionLost();
+
+ GpuCompositorFrameSinkDelegate* const delegate_;
+ std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
+
bool client_connection_lost_ = false;
bool private_connection_lost_ = false;
cc::mojom::MojoCompositorFrameSinkClientPtr client_;
+ mojo::Binding<cc::mojom::MojoCompositorFrameSink>
+ compositor_frame_sink_binding_;
mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
compositor_frame_sink_private_binding_;
« no previous file with comments | « components/display_compositor/BUILD.gn ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698