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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp

Issue 1587073011: Plumb NotifyAnimationAborted from the compositor to blink animation delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initialize aborted_ in unittest Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
index 634381a2e830c25a7b6537406c0f8be4501b29e7..f8667e3629e4948ba0d2a6d9c90342e0f4763559 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
@@ -255,6 +255,13 @@ void ScrollAnimator::updateCompositorAnimations()
}
}
+void ScrollAnimator::notifyCompositorAnimationAborted(int groupId)
+{
+ // An animation aborted by the compositor is treated as a finished
+ // animation.
+ ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId);
+}
+
void ScrollAnimator::notifyCompositorAnimationFinished(int groupId)
{
ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId);

Powered by Google App Engine
This is Rietveld 408576698