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

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: Android compiles locally 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
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 4c20a704a21e9742875db931268af4a5de9217d4..9a98b4c8a3f4eacf582c456309873d9a4d4542f4 100644
--- a/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
+++ b/components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc
@@ -60,10 +60,9 @@ void CompositorFrameSinkImpl::SubmitCompositorFrame(
const SubmitCompositorFrameCallback& callback) {
// TODO(fsamuel): Validate that SurfaceDrawQuad refer to allowable surface
// IDs.
- std::unique_ptr<cc::CompositorFrame> compositor_frame =
- ConvertToCompositorFrame(frame);
+ cc::CompositorFrame compositor_frame = ConvertToCompositorFrame(frame);
gfx::Size frame_size =
- compositor_frame->delegated_frame_data->render_pass_list.back()
+ compositor_frame.delegated_frame_data->render_pass_list.back()
->output_rect.size();
if (frame_size.IsEmpty() || frame_size != last_submitted_frame_size_) {
if (!surface_id_.is_null())

Powered by Google App Engine
This is Rietveld 408576698