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

Unified Diff: cc/animation/animation_player.cc

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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 | « cc/animation/animation_player.h ('k') | cc/blink/web_compositor_animation_player_impl.h » ('j') | 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 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())
« no previous file with comments | « cc/animation/animation_player.h ('k') | cc/blink/web_compositor_animation_player_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698