| Index: cc/surfaces/surface_synchronization_unittest.cc
|
| diff --git a/cc/surfaces/surface_synchronization_unittest.cc b/cc/surfaces/surface_synchronization_unittest.cc
|
| index 9b573261f568a2c9e69a82534b6d811464a8ad07..3660978e88cb2660cfe54e3e4dabaa72f950f86b 100644
|
| --- a/cc/surfaces/surface_synchronization_unittest.cc
|
| +++ b/cc/surfaces/surface_synchronization_unittest.cc
|
| @@ -53,29 +53,19 @@ class SurfaceSynchronizationTest : public testing::Test {
|
| ~SurfaceSynchronizationTest() override {}
|
|
|
| CompositorFrameSinkSupport& display_support() { return *supports_[0]; }
|
| - Surface* display_surface() {
|
| - return display_support().current_surface_for_testing();
|
| - }
|
| + Surface* display_surface() { return display_support().GetCurrentSurface(); }
|
|
|
| CompositorFrameSinkSupport& parent_support() { return *supports_[1]; }
|
| - Surface* parent_surface() {
|
| - return parent_support().current_surface_for_testing();
|
| - }
|
| + Surface* parent_surface() { return parent_support().GetCurrentSurface(); }
|
|
|
| CompositorFrameSinkSupport& child_support1() { return *supports_[2]; }
|
| - Surface* child_surface1() {
|
| - return child_support1().current_surface_for_testing();
|
| - }
|
| + Surface* child_surface1() { return child_support1().GetCurrentSurface(); }
|
|
|
| CompositorFrameSinkSupport& child_support2() { return *supports_[3]; }
|
| - Surface* child_surface2() {
|
| - return child_support2().current_surface_for_testing();
|
| - }
|
| + Surface* child_surface2() { return child_support2().GetCurrentSurface(); }
|
|
|
| CompositorFrameSinkSupport& support(int index) { return *supports_[index]; }
|
| - Surface* surface(int index) {
|
| - return support(index).current_surface_for_testing();
|
| - }
|
| + Surface* surface(int index) { return support(index).GetCurrentSurface(); }
|
|
|
| SurfaceManager& surface_manager() { return surface_manager_; }
|
|
|
| @@ -1010,7 +1000,7 @@ TEST_F(SurfaceSynchronizationTest, SurfaceResurrection) {
|
| child_support1().EvictCurrentSurface();
|
| surface = surface_manager().GetSurfaceForId(child_id);
|
| EXPECT_NE(nullptr, surface);
|
| - EXPECT_TRUE(surface->destroyed());
|
| + EXPECT_TRUE(surface_manager().IsMarkedForDestruction(child_id));
|
|
|
| // Child submits another frame to the same local surface id that is marked
|
| // destroyed.
|
| @@ -1021,7 +1011,7 @@ TEST_F(SurfaceSynchronizationTest, SurfaceResurrection) {
|
| // used again.
|
| Surface* surface2 = surface_manager().GetSurfaceForId(child_id);
|
| EXPECT_EQ(surface, surface2);
|
| - EXPECT_FALSE(surface2->destroyed());
|
| + EXPECT_FALSE(surface_manager().IsMarkedForDestruction(child_id));
|
| }
|
|
|
| // Verifies that if a LocalSurfaceId belonged to a surface that doesn't exist
|
|
|