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

Unified Diff: components/exo/surface.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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index dffcaee6487592251ba2233159b312b3e5792e16..01115e7f2cccf801d612a643f4203fb82be38fc0 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -178,15 +178,9 @@ Surface::Surface()
frame_sink_id_(aura::Env::GetInstance()
->context_factory_private()
->AllocateFrameSinkId()) {
- cc::mojom::MojoCompositorFrameSinkClientPtr frame_sink_holder_ptr;
- cc::mojom::MojoCompositorFrameSinkClientRequest frame_sink_client_request(
- &frame_sink_holder_ptr);
- std::unique_ptr<CompositorFrameSink> frame_sink(new CompositorFrameSink(
- frame_sink_id_,
- aura::Env::GetInstance()->context_factory_private()->GetSurfaceManager(),
- std::move(frame_sink_holder_ptr)));
compositor_frame_sink_holder_ = new CompositorFrameSinkHolder(
- this, std::move(frame_sink), std::move(frame_sink_client_request));
+ this, frame_sink_id_,
+ aura::Env::GetInstance()->context_factory_private()->GetSurfaceManager());
surface_reference_factory_ =
new CustomSurfaceReferenceFactory(compositor_frame_sink_holder_.get());
window_->SetType(ui::wm::WINDOW_TYPE_CONTROL);
« no previous file with comments | « components/exo/compositor_frame_sink_holder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698