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

Unified Diff: components/mus/public/cpp/surfaces/surfaces_type_converters.cc

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix reflector 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/public/cpp/surfaces/surfaces_type_converters.cc
diff --git a/components/mus/public/cpp/surfaces/surfaces_type_converters.cc b/components/mus/public/cpp/surfaces/surfaces_type_converters.cc
index 7c6e6a5449e8ee3ae0ea6acfde3f2e304873f467..1d805b46faa0b6a87d7f7a361b412b006739976c 100644
--- a/components/mus/public/cpp/surfaces/surfaces_type_converters.cc
+++ b/components/mus/public/cpp/surfaces/surfaces_type_converters.cc
@@ -393,7 +393,7 @@ std::unique_ptr<cc::CompositorFrame> ConvertToCompositorFrame(
return std::unique_ptr<cc::CompositorFrame>();
frame_data->render_pass_list.push_back(std::move(pass));
}
- std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
+ std::unique_ptr<cc::CompositorFrame> frame(cc::CompositorFrame::Create());
cc::CompositorFrameMetadata metadata = input->metadata;
frame->delegated_frame_data = std::move(frame_data);
return frame;

Powered by Google App Engine
This is Rietveld 408576698