Index: cc/animation/animation_player.cc |
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc |
index c237aa7fb8b17f5f7172f29d57d23a54ecdcb517..a5b742a273fa21fe50321d2d36f5e9d43b1979a0 100644 |
--- a/cc/animation/animation_player.cc |
+++ b/cc/animation/animation_player.cc |
@@ -153,6 +153,13 @@ void AnimationPlayer::RemoveAnimation(int animation_id) { |
} |
} |
+void AnimationPlayer::AbortAnimation(int animation_id) { |
+ DCHECK(element_animations_); |
+ element_animations_->layer_animation_controller()->AbortAnimation( |
+ animation_id); |
+ SetNeedsCommit(); |
+} |
+ |
void AnimationPlayer::PushPropertiesTo(AnimationPlayer* player_impl) { |
if (!element_animations_) { |
if (player_impl->element_animations()) |