| 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);
|
|
|