Index: cc/surfaces/display_unittest.cc |
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc |
index 312c3a4a9da65012ed9833c6baa246ab547be933..9bce5f37803ec9913fe791e41d186153932220ff 100644 |
--- a/cc/surfaces/display_unittest.cc |
+++ b/cc/surfaces/display_unittest.cc |
@@ -195,7 +195,8 @@ TEST_F(DisplayTest, DisplayDamaged) { |
display.Initialize(std::move(output_surface_), task_runner_.get()); |
TestDisplayScheduler& scheduler = display.scheduler(); |
- SurfaceId surface_id(id_allocator_.GenerateId()); |
+ SurfaceId surface_id; |
+ surface_id = id_allocator_.GenerateId(); |
EXPECT_FALSE(scheduler.damaged); |
EXPECT_FALSE(scheduler.has_new_root_surface); |
display.SetSurfaceId(surface_id, 1.f); |
@@ -451,7 +452,8 @@ TEST_F(DisplayTest, Finish) { |
EXPECT_CALL(*context_ptr, shallowFinishCHROMIUM()).Times(0); |
- SurfaceId surface_id(id_allocator_.GenerateId()); |
+ SurfaceId surface_id; |
+ surface_id = id_allocator_.GenerateId(); |
TestDisplayClient client; |
RendererSettings settings; |