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

Unified Diff: cc/animation/animation_player.cc

Issue 2793383002: Reset is_ticking_ when calling AnimationPlayer::RemoveFromTicking (Closed)
Patch Set: Created 3 years, 8 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 d18f76884698caa7152a8d0ed9fd58237a570e2c..b45bc6b018db882650a93e3b87b5ed234519df59 100644
--- a/cc/animation/animation_player.cc
+++ b/cc/animation/animation_player.cc
@@ -330,6 +330,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