Index: cc/trees/layer_tree_host_unittest_animation.cc |
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc |
index a81bf713574ce4c72518e50876729afd04569863..fff628b1cb352c4fa098aad77114422b27216568 100644 |
--- a/cc/trees/layer_tree_host_unittest_animation.cc |
+++ b/cc/trees/layer_tree_host_unittest_animation.cc |
@@ -397,8 +397,7 @@ |
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) OVERRIDE { |
// At the start of every commit, block activations and make sure |
// we are backgrounded. |
- if (host_impl->settings().impl_side_painting) |
- host_impl->BlockNotifyReadyToActivateForTesting(true); |
+ host_impl->BlockNotifyReadyToActivateForTesting(true); |
PostSetVisibleToMainThread(false); |
} |
@@ -427,8 +426,7 @@ |
} |
virtual void UnblockActivations(LayerTreeHostImpl* host_impl) { |
- if (host_impl->settings().impl_side_painting) |
- host_impl->BlockNotifyReadyToActivateForTesting(false); |
+ host_impl->BlockNotifyReadyToActivateForTesting(false); |
} |
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE { |
@@ -484,7 +482,7 @@ |
bool active_tree_was_animated_; |
}; |
-SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F( |
+SINGLE_AND_MULTI_THREAD_TEST_F( |
LayerTreeHostAnimationTestNoBackgroundTickingWithoutActiveTree); |
// Ensure that an animation's timing function is respected. |
@@ -1171,8 +1169,7 @@ |
} |
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) OVERRIDE { |
- if (host_impl->settings().impl_side_painting) |
- host_impl->BlockNotifyReadyToActivateForTesting(true); |
+ host_impl->BlockNotifyReadyToActivateForTesting(true); |
} |
virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) OVERRIDE { |
@@ -1180,10 +1177,9 @@ |
// blocking activation. We want to verify that even with activation blocked, |
// the animation on the layer that's already in the active tree won't get a |
// head start. |
- if (host_impl->settings().impl_side_painting && |
- host_impl->pending_tree()->source_frame_number() != 2) { |
+ if (!host_impl->settings().impl_side_painting || |
+ host_impl->pending_tree()->source_frame_number() != 2) |
host_impl->BlockNotifyReadyToActivateForTesting(false); |
- } |
} |
virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, |
@@ -1193,10 +1189,8 @@ |
return; |
frame_count_with_pending_tree_++; |
- if (frame_count_with_pending_tree_ == 2 && |
- host_impl->settings().impl_side_painting) { |
+ if (frame_count_with_pending_tree_ == 2) |
host_impl->BlockNotifyReadyToActivateForTesting(false); |
- } |
} |
virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, |
@@ -1227,7 +1221,7 @@ |
int frame_count_with_pending_tree_; |
}; |
-SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F( |
+SINGLE_AND_MULTI_THREAD_TEST_F( |
LayerTreeHostAnimationTestAnimationsAddedToNewAndExistingLayers); |
class LayerTreeHostAnimationTestAddAnimationAfterAnimating |