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

Unified Diff: components/exo/compositor_frame_sink_holder.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_holder.h ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink_holder.cc
diff --git a/components/exo/compositor_frame_sink_holder.cc b/components/exo/compositor_frame_sink_holder.cc
index 7c2d2c4fb8468640e4178431e957d4f564da6034..34bcf180bcb76c539f8593cf0330ee7bf05a8a20 100644
--- a/components/exo/compositor_frame_sink_holder.cc
+++ b/components/exo/compositor_frame_sink_holder.cc
@@ -14,12 +14,12 @@ namespace exo {
CompositorFrameSinkHolder::CompositorFrameSinkHolder(
Surface* surface,
- std::unique_ptr<CompositorFrameSink> frame_sink,
- cc::mojom::MojoCompositorFrameSinkClientRequest request)
+ const cc::FrameSinkId& frame_sink_id,
+ cc::SurfaceManager* surface_manager)
: surface_(surface),
- frame_sink_(std::move(frame_sink)),
+ frame_sink_(
+ new CompositorFrameSink(frame_sink_id, surface_manager, this)),
begin_frame_source_(base::MakeUnique<cc::ExternalBeginFrameSource>(this)),
- binding_(this, std::move(request)),
weak_factory_(this) {
surface_->AddSurfaceObserver(this);
}
« no previous file with comments | « components/exo/compositor_frame_sink_holder.h ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698