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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2710703005: GpuDisplayCompositorFrameSink => GpuRootCompositorFrameSink (Closed)
Patch Set: Update Mojom 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
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..77f16a81680975a8dbdb61d3d394ccbecf5b2249 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,
danakj 2017/02/23 22:13:44 Does this class need to know about SurfaceManager*
Fady Samuel 2017/02/23 23:14:58 Agreed but GpuCompositorFrameSink is a CompositorF
danakj 2017/02/23 23:17:33 Ah I see, then there's a good reason at least, tha
+ const cc::FrameSinkId& frame_sink_id,
+ cc::mojom::MojoCompositorFrameSinkRequest request,
cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
cc::mojom::MojoCompositorFrameSinkClientPtr client);
@@ -51,11 +53,6 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
std::unique_ptr<cc::CopyOutputRequest> request) override;
protected:
danakj 2017/02/23 22:13:44 Remove
Fady Samuel 2017/02/23 23:14:58 Done.
- void OnClientConnectionLost();
- void OnPrivateConnectionLost();
-
- GpuCompositorFrameSinkDelegate* const delegate_;
- std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
private:
// cc::CompositorFrameSinkSupportClient implementation:
@@ -65,10 +62,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_;

Powered by Google App Engine
This is Rietveld 408576698