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

Unified Diff: components/exo/compositor_frame_sink.cc

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/compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink.cc
diff --git a/components/exo/compositor_frame_sink.cc b/components/exo/compositor_frame_sink.cc
index 1d8d4bcc1cc84c5b86dd181f8893a6ae59c1ab1a..3418413efcc57b591c3842b93535ab09eb448d13 100644
--- a/components/exo/compositor_frame_sink.cc
+++ b/components/exo/compositor_frame_sink.cc
@@ -7,6 +7,7 @@
#include "base/memory/ptr_util.h"
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_manager.h"
+#include "components/exo/compositor_frame_sink_holder.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
namespace exo {
@@ -14,12 +15,11 @@ namespace exo {
////////////////////////////////////////////////////////////////////////////////
// ExoComopositorFrameSink, public:
-CompositorFrameSink::CompositorFrameSink(
- const cc::FrameSinkId& frame_sink_id,
- cc::SurfaceManager* surface_manager,
- cc::mojom::MojoCompositorFrameSinkClientPtr client)
+CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
+ cc::SurfaceManager* surface_manager,
+ CompositorFrameSinkHolder* client)
: support_(this, surface_manager, frame_sink_id, nullptr, nullptr),
- client_(std::move(client)) {}
+ client_(client) {}
CompositorFrameSink::~CompositorFrameSink() {}
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698