Index: components/exo/surface_unittest.cc |
diff --git a/components/exo/surface_unittest.cc b/components/exo/surface_unittest.cc |
index 872f03c0da372d58e8277aa4ffc82db6eda008bb..01bbff2a7cfe918c32fbada31a4a3ecddd063f9e 100644 |
--- a/components/exo/surface_unittest.cc |
+++ b/components/exo/surface_unittest.cc |
@@ -129,7 +129,7 @@ TEST_F(SurfaceTest, SetBufferScale) { |
surface->content_size().ToString()); |
} |
-TEST_F(SurfaceTest, RecreateLayer) { |
+TEST_F(SurfaceTest, MirrorLayers) { |
gfx::Size buffer_size(512, 512); |
std::unique_ptr<Buffer> buffer( |
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(buffer_size))); |
@@ -141,7 +141,7 @@ TEST_F(SurfaceTest, RecreateLayer) { |
EXPECT_EQ(buffer_size, surface->window()->bounds().size()); |
EXPECT_EQ(buffer_size, surface->window()->layer()->bounds().size()); |
std::unique_ptr<ui::LayerTreeOwner> old_layer_owner = |
- ::wm::RecreateLayers(surface->window(), nullptr); |
+ ::wm::MirrorLayers(surface->window(), false /* sync_bounds */); |
EXPECT_EQ(buffer_size, surface->window()->bounds().size()); |
EXPECT_EQ(buffer_size, surface->window()->layer()->bounds().size()); |
EXPECT_EQ(buffer_size, old_layer_owner->root()->bounds().size()); |