Remove Layer{Impl}::TransformIsAnimating.
Transform-focused version of http://crrev.com/2875133003 which does
same for EffectIsAnimating.
BUG=709137
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2881653002
Cr-Commit-Position: refs/heads/master@{#471370}
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index e4a6f57..aed6857c7 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -2134,6 +2134,11 @@
EXPECT_EQ(gfx::Rect(), grand_child->visible_layer_rect());
}
+static bool TransformIsAnimating(LayerImpl* layer) {
+ return layer->GetMutatorHost()->IsAnimatingTransformProperty(
+ layer->element_id(), layer->GetElementTypeForAnimation());
+}
+
TEST_F(LayerTreeHostCommonTest,
ScreenSpaceTransformIsAnimatingWithDelayedAnimation) {
LayerImpl* root = root_layer_for_testing();
@@ -2166,7 +2171,7 @@
EXPECT_FALSE(root->screen_space_transform_is_animating());
EXPECT_FALSE(child->screen_space_transform_is_animating());
- EXPECT_FALSE(grand_child->TransformIsAnimating());
+ EXPECT_FALSE(TransformIsAnimating(grand_child));
EXPECT_TRUE(grand_child->HasPotentiallyRunningTransformAnimation());
EXPECT_TRUE(grand_child->screen_space_transform_is_animating());
EXPECT_TRUE(great_grand_child->screen_space_transform_is_animating());