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

Unified Diff: components/exo/compositor_frame_sink.h

Issue 2626293005: exo::CompositorFrameSink uses CompositorFrameSinkHolder* instead of mojo interface pointer (Closed)
Patch Set: Addressed nit 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/exo/buffer_unittest.cc ('k') | components/exo/compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink.h
diff --git a/components/exo/compositor_frame_sink.h b/components/exo/compositor_frame_sink.h
index 41449cc0f0445b4df84067a44da35a30e132197e..f80832ca8f3d55d49a86789e1940fd005762a229 100644
--- a/components/exo/compositor_frame_sink.h
+++ b/components/exo/compositor_frame_sink.h
@@ -14,12 +14,14 @@
namespace exo {
+class CompositorFrameSinkHolder;
+
class CompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
public cc::mojom::MojoCompositorFrameSink {
public:
CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
cc::SurfaceManager* surface_manager,
- cc::mojom::MojoCompositorFrameSinkClientPtr client);
+ CompositorFrameSinkHolder* client);
~CompositorFrameSink() override;
@@ -44,9 +46,7 @@ class CompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
private:
cc::CompositorFrameSinkSupport support_;
- cc::mojom::MojoCompositorFrameSinkClientPtr client_;
- cc::ReturnedResourceArray surface_returned_resources_;
- mojo::StrongBindingPtr<cc::mojom::MojoCompositorFrameSink> binding_;
+ CompositorFrameSinkHolder* const client_;
DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
};
« no previous file with comments | « components/exo/buffer_unittest.cc ('k') | components/exo/compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698