Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: cc/animation/animation_player.cc

Issue 2791513002: Reset is_ticking_ when calling AnimationPlayer::RemoveFromTicking (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player.cc
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc
index d77e1de677395b4d51ccd15fc0d4b23e9d3ec685..634d64948ae4637ce642ec66a4364a60e88cec81 100644
--- a/cc/animation/animation_player.cc
+++ b/cc/animation/animation_player.cc
@@ -331,6 +331,7 @@ void AnimationPlayer::RemoveFromTicking() {
DCHECK(animation_host_);
// Resetting last_tick_time_ here ensures that calling ::UpdateState
// before ::Animate doesn't start an animation.
+ is_ticking_ = false;
last_tick_time_ = base::TimeTicks();
animation_host_->RemoveFromTicking(this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698