| Index: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
| index 4ebf061b300285eada04e8e1c2b1109ed38e655e..752b06804f89f6ddddfb83ca0ba613a1bbc10087 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
| @@ -36,10 +36,6 @@
|
|
|
| virtual void resetAnimationState();
|
| virtual void cancelAnimation();
|
| - // Aborts the currently running scroll offset animation on the compositor
|
| - // and continues it on the main thread. This should only be called when in
|
| - // DocumentLifecycle::LifecycleState::CompositingClean state.
|
| - virtual void takeoverCompositorAnimation();
|
|
|
| virtual ScrollableArea* scrollableArea() const = 0;
|
| virtual void tickAnimation(double monotonicTime) = 0;
|
| @@ -55,7 +51,7 @@
|
|
|
| bool addAnimation(PassOwnPtr<CompositorAnimation>);
|
| void removeAnimation();
|
| - virtual void abortAnimation();
|
| + void abortAnimation();
|
|
|
| void compositorAnimationFinished(int groupId);
|
| // Returns true if the compositor player was attached to a new layer.
|
| @@ -75,7 +71,6 @@
|
|
|
| friend class Internals;
|
| FRIEND_TEST_ALL_PREFIXES(ScrollAnimatorTest, MainThreadStates);
|
| - FRIEND_TEST_ALL_PREFIXES(ScrollAnimatorTest, AnimatedScrollTakeover);
|
|
|
| enum class RunState {
|
| // No animation.
|
| @@ -102,12 +97,7 @@
|
| // Finished an animation that was running on the main thread or the
|
| // compositor thread. When in this state, post animation cleanup can
|
| // be performed.
|
| - PostAnimationCleanup,
|
| -
|
| - // Running an animation on the compositor but need to continue it
|
| - // on the main thread. This could happen if a main thread scrolling
|
| - // reason is added while animating the scroll offset.
|
| - RunningOnCompositorButNeedsTakeover,
|
| + PostAnimationCleanup
|
| };
|
|
|
| OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
|
|
|