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

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

Issue 1782563002: Takeover MT initiated animations from the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 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
Index: third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
index 2084860ebd6547a512bc568d22b3772f70c24821..623b7ecbfd517a37ce508f1243a081b8a3479c5e 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
@@ -43,7 +43,7 @@ namespace blink {
class ScrollAnimatorTest;
class CompositorAnimationTimeline;
-class PLATFORM_EXPORT ScrollAnimator final : public ScrollAnimatorBase {
+class PLATFORM_EXPORT ScrollAnimator : public ScrollAnimatorBase {
public:
explicit ScrollAnimator(ScrollableArea*, WTF::TimeFunction = WTF::monotonicallyIncreasingTime);
~ScrollAnimator() override;
@@ -58,6 +58,7 @@ public:
// ScrollAnimatorCompositorCoordinator implementation.
void tickAnimation(double monotonicTime) override;
void cancelAnimation() override;
+ void takeoverCompositorAnimation() override;
void resetAnimationState() override;
void updateCompositorAnimations() override;
void notifyCompositorAnimationFinished(int groupId) override;
@@ -67,6 +68,9 @@ public:
DECLARE_VIRTUAL_TRACE();
protected:
+ // Returns whether or not the animation was sent to the compositor.
+ virtual bool sendAnimationToCompositor();
+
void notifyAnimationTakeover(
double monotonicTime,
double animationStartTime,

Powered by Google App Engine
This is Rietveld 408576698