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

Unified Diff: components/mus/ws/platform_display.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/ws/platform_display.cc
diff --git a/components/mus/ws/platform_display.cc b/components/mus/ws/platform_display.cc
index 46aa239127d72eb048503a6f184aa89bbebb9601..f5dbfbc796a89fffa7e8621ebc7110d69acfd907 100644
--- a/components/mus/ws/platform_display.cc
+++ b/components/mus/ws/platform_display.cc
@@ -322,7 +322,7 @@ DefaultPlatformDisplay::GenerateCompositorFrame() {
frame_data->device_scale_factor = metrics_.device_scale_factor;
frame_data->render_pass_list.push_back(std::move(render_pass));
- std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
+ std::unique_ptr<cc::CompositorFrame> frame(cc::CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698