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

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

Issue 2103333002: Revert of Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.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 a60c7394c90b9db124e31a4c4a255eadd4ffabb0..a18d0319753b02964b670cd9a8210a3a8f871931 100644
--- a/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
+++ b/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
@@ -68,7 +68,10 @@
factory_.Create(surface_id_);
last_submitted_frame_size_ = frame_size;
}
- factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame),
+ 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),
base::Bind(&CallCallback, callback));
}
« no previous file with comments | « components/exo/surface.cc ('k') | components/mus/surfaces/display_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698