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

Unified Diff: cc/surfaces/surface_aggregator.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: cc/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 066ffc8adb902fb4f194d3c9fae5ae64c64d6a16..fc4b63551f48b2c2984c880a0d029562f013fde3 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -780,7 +780,7 @@ std::unique_ptr<CompositorFrame> SurfaceAggregator::Aggregate(
return nullptr;
TRACE_EVENT0("cc", "SurfaceAggregator::Aggregate");
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = base::WrapUnique(new DelegatedFrameData);
DCHECK(root_surface_frame->delegated_frame_data);

Powered by Google App Engine
This is Rietveld 408576698