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

Unified Diff: cc/surfaces/display_unittest.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/surfaces/display.cc ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 5b38d20edaf4b29770659044d389ad725f211404..0de4a9f332bb6ff91f59e06fb5937499795e4b87 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -135,8 +135,8 @@ class DisplayTest : public testing::Test {
std::unique_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
pass_list->swap(frame_data->render_pass_list);
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = std::move(frame_data);
+ CompositorFrame frame;
+ frame.delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(surface_id, std::move(frame),
SurfaceFactory::DrawCallback());
@@ -337,9 +337,9 @@ TEST_F(DisplayTest, DisplayDamaged) {
std::unique_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
pass_list.swap(frame_data->render_pass_list);
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = std::move(frame_data);
- frame->metadata.latency_info.push_back(ui::LatencyInfo());
+ CompositorFrame frame;
+ frame.delegated_frame_data = std::move(frame_data);
+ frame.metadata.latency_info.push_back(ui::LatencyInfo());
factory_.SubmitCompositorFrame(surface_id, std::move(frame),
SurfaceFactory::DrawCallback());
@@ -370,8 +370,8 @@ TEST_F(DisplayTest, DisplayDamaged) {
std::unique_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
pass_list.swap(frame_data->render_pass_list);
- std::unique_ptr<CompositorFrame> frame(new CompositorFrame);
- frame->delegated_frame_data = std::move(frame_data);
+ CompositorFrame frame;
+ frame.delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(surface_id, std::move(frame),
SurfaceFactory::DrawCallback());
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698