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

Unified Diff: components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 6 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/surface_unittest.cc ('k') | components/mus/surfaces/display_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
diff --git a/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc b/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
index a18d0319753b02964b670cd9a8210a3a8f871931..a60c7394c90b9db124e31a4c4a255eadd4ffabb0 100644
--- a/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
+++ b/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
@@ -68,10 +68,7 @@ void CompositorFrameSinkImpl::SubmitCompositorFrame(
factory_.Create(surface_id_);
last_submitted_frame_size_ = frame_size;
}
- std::unique_ptr<cc::CompositorFrame> compositor_frame_copy(
- new cc::CompositorFrame);
- *compositor_frame_copy = std::move(compositor_frame);
- factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame_copy),
+ factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame),
base::Bind(&CallCallback, callback));
}
« no previous file with comments | « components/exo/surface_unittest.cc ('k') | components/mus/surfaces/display_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698