| Index: cc/surfaces/display_unittest.cc
|
| diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
|
| index 603d06820013cd11c2c92ba368bea3a75a079f3b..1c96a0dae683599c0841e79628fcfa73133436e7 100644
|
| --- a/cc/surfaces/display_unittest.cc
|
| +++ b/cc/surfaces/display_unittest.cc
|
| @@ -21,6 +21,7 @@
|
| #include "cc/surfaces/local_surface_id_allocator.h"
|
| #include "cc/surfaces/surface.h"
|
| #include "cc/surfaces/surface_manager.h"
|
| +#include "cc/test/compositor_frame_helpers.h"
|
| #include "cc/test/fake_output_surface.h"
|
| #include "cc/test/scheduler_test_common.h"
|
| #include "cc/test/test_shared_bitmap_manager.h"
|
| @@ -125,7 +126,7 @@ class DisplayTest : public testing::Test {
|
| protected:
|
| void SubmitCompositorFrame(RenderPassList* pass_list,
|
| const LocalSurfaceId& local_surface_id) {
|
| - CompositorFrame frame;
|
| + CompositorFrame frame = test::MakeCompositorFrame();
|
| pass_list->swap(frame.render_pass_list);
|
|
|
| support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
|
| @@ -330,7 +331,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
|
| pass_list.push_back(std::move(pass));
|
| scheduler_->ResetDamageForTest();
|
|
|
| - CompositorFrame frame;
|
| + CompositorFrame frame = test::MakeCompositorFrame();
|
| pass_list.swap(frame.render_pass_list);
|
| frame.metadata.latency_info.push_back(ui::LatencyInfo());
|
|
|
| @@ -360,7 +361,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
|
| pass_list.push_back(std::move(pass));
|
| scheduler_->ResetDamageForTest();
|
|
|
| - CompositorFrame frame;
|
| + CompositorFrame frame = test::MakeCompositorFrame();
|
| pass_list.swap(frame.render_pass_list);
|
|
|
| support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
|
|
|