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

Unified Diff: cc/surfaces/surface_display_output_surface_unittest.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_display_output_surface_unittest.cc
diff --git a/cc/surfaces/surface_display_output_surface_unittest.cc b/cc/surfaces/surface_display_output_surface_unittest.cc
index 602ff1fc082f98effbc126a124610ac1b3fc1ff1..4b9a4d595ab689abc8cb7df9159bbcef5bc7bbb2 100644
--- a/cc/surfaces/surface_display_output_surface_unittest.cc
+++ b/cc/surfaces/surface_display_output_surface_unittest.cc
@@ -75,10 +75,10 @@ class SurfaceDisplayOutputSurfaceTest : public testing::Test {
std::unique_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
frame_data->render_pass_list.push_back(std::move(render_pass));
- CompositorFrame frame;
- frame.delegated_frame_data = std::move(frame_data);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
+ frame->delegated_frame_data = std::move(frame_data);
- delegated_output_surface_->SwapBuffers(&frame);
+ delegated_output_surface_->SwapBuffers(std::move(frame));
}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698