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

Unified Diff: components/exo/surface.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests 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 | « cc/test/pixel_test_delegating_output_surface.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index fed879a6684f54aefae2409c2da414d953a50a23..077795030e7a49a8b5ddc252f9d9018209231e2e 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -807,8 +807,8 @@ void Surface::UpdateSurface(bool full_damage) {
}
delegated_frame->render_pass_list.push_back(std::move(render_pass));
- std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
- frame->delegated_frame_data = std::move(delegated_frame);
+ cc::CompositorFrame frame;
+ frame.delegated_frame_data = std::move(delegated_frame);
factory_owner_->surface_factory_->SubmitCompositorFrame(
surface_id_, std::move(frame), cc::SurfaceFactory::DrawCallback());
« no previous file with comments | « cc/test/pixel_test_delegating_output_surface.cc ('k') | components/exo/surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698