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

Unified Diff: cc/surfaces/display_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/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 3a7ede8e5425ab48ed51136cf85a2096cc73b715..3dd8ae59e6a84aa412b0ddc317d774304f95b59d 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -135,7 +135,7 @@ 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);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(surface_id, std::move(frame),
@@ -337,7 +337,7 @@ 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);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
frame->metadata.latency_info.push_back(ui::LatencyInfo());
@@ -370,7 +370,7 @@ 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);
+ std::unique_ptr<CompositorFrame> frame(CompositorFrame::Create());
frame->delegated_frame_data = std::move(frame_data);
factory_.SubmitCompositorFrame(surface_id, std::move(frame),
@@ -386,7 +386,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
// Latency info from previous frame should be sent now.
EXPECT_EQ(1u,
- output_surface_->last_sent_frame().metadata.latency_info.size());
+ output_surface_->last_sent_frame()->metadata.latency_info.size());
}
{
@@ -412,7 +412,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
EXPECT_EQ(gfx::Rect(0, 0, 100, 100),
software_output_device_->damage_rect());
EXPECT_EQ(0u,
- output_surface_->last_sent_frame().metadata.latency_info.size());
+ output_surface_->last_sent_frame()->metadata.latency_info.size());
}
factory_.Destroy(surface_id);

Powered by Google App Engine
This is Rietveld 408576698