diff options
Diffstat (limited to 'cc/trees/layer_tree_host_unittest_context.cc')
-rw-r--r-- | cc/trees/layer_tree_host_unittest_context.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc index 925eda4..baf2b2d 100644 --- a/cc/trees/layer_tree_host_unittest_context.cc +++ b/cc/trees/layer_tree_host_unittest_context.cc @@ -1126,8 +1126,10 @@ class LayerTreeHostContextTestDontUseLostResources // This will get called twice: // First when we create the initial output surface... if (layer_tree_host()->source_frame_number() > 0) { - // ... and then again after we forced the context to be lost. + // ... and then again after we forced the context to be lost on the third + // frame. Verify this assumption here. lost_context_ = true; + EXPECT_EQ(layer_tree_host()->source_frame_number(), 3); } return LayerTreeHostContextTest::CreateFakeOutputSurface(fallback); } @@ -1135,7 +1137,7 @@ class LayerTreeHostContextTestDontUseLostResources virtual void DidCommitAndDrawFrame() OVERRIDE { ASSERT_TRUE(layer_tree_host()->hud_layer()); // End the test once we know the 3nd frame drew. - if (layer_tree_host()->source_frame_number() < 5) { + if (layer_tree_host()->source_frame_number() < 4) { layer_tree_host()->root_layer()->SetNeedsDisplay(); layer_tree_host()->SetNeedsCommit(); } else { |