| Index: cc/trees/layer_tree_host_impl_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
|
| index fa301937b5564c47127e0aedcc3d2b793b24c7f0..9cb96c4610b81372361a6b98b8b06728ca5bbaad 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -6974,23 +6974,14 @@ class LayerTreeHostImplCountingLostSurfaces : public LayerTreeHostImplTest {
|
| };
|
|
|
| TEST_F(LayerTreeHostImplCountingLostSurfaces, TwiceLostSurface) {
|
| - // The medium term, we plan to remove LayerTreeHostImpl::IsContextLost().
|
| - // Until then, we need the state variable
|
| - // LayerTreeHostImpl::have_valid_output_surface_ and we can
|
| - // enforce the following behaviour, where calling DidLoseOutputSurface
|
| - // twice in a row only causes one subsequent
|
| - // call to LayerTreeHostImplClient::DidLoseOutputSurfaceOnImplThread().
|
| // Really we just need at least one client notification each time
|
| // we go from having a valid output surface to not having a valid output
|
| // surface.
|
| EXPECT_EQ(0, num_lost_surfaces_);
|
| - EXPECT_FALSE(host_impl_->IsContextLost());
|
| host_impl_->DidLoseOutputSurface();
|
| - EXPECT_TRUE(host_impl_->IsContextLost());
|
| EXPECT_EQ(1, num_lost_surfaces_);
|
| host_impl_->DidLoseOutputSurface();
|
| - EXPECT_TRUE(host_impl_->IsContextLost());
|
| - EXPECT_EQ(1, num_lost_surfaces_);
|
| + EXPECT_LE(1, num_lost_surfaces_);
|
| }
|
|
|
| } // namespace
|
|
|