| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/scroll/ProgrammaticScrollAnimator.h" | 5 #include "platform/scroll/ProgrammaticScrollAnimator.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "platform/animation/CompositorAnimation.h" | 8 #include "platform/animation/CompositorAnimation.h" |
| 8 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" | 9 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" |
| 9 #include "platform/geometry/IntSize.h" | 10 #include "platform/geometry/IntSize.h" |
| 10 #include "platform/graphics/GraphicsLayer.h" | 11 #include "platform/graphics/GraphicsLayer.h" |
| 11 #include "platform/scroll/ScrollableArea.h" | 12 #include "platform/scroll/ScrollableArea.h" |
| 12 #include "public/platform/Platform.h" | 13 #include "public/platform/Platform.h" |
| 13 #include "public/platform/WebCompositorSupport.h" | 14 #include "public/platform/WebCompositorSupport.h" |
| 14 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
| 15 #include <memory> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 ProgrammaticScrollAnimator::ProgrammaticScrollAnimator( | 19 ProgrammaticScrollAnimator::ProgrammaticScrollAnimator( |
| 20 ScrollableArea* scrollableArea) | 20 ScrollableArea* scrollableArea) |
| 21 : m_scrollableArea(scrollableArea), m_startTime(0.0) {} | 21 : m_scrollableArea(scrollableArea), m_startTime(0.0) {} |
| 22 | 22 |
| 23 ProgrammaticScrollAnimator::~ProgrammaticScrollAnimator() {} | 23 ProgrammaticScrollAnimator::~ProgrammaticScrollAnimator() {} |
| 24 | 24 |
| 25 void ProgrammaticScrollAnimator::resetAnimationState() { | 25 void ProgrammaticScrollAnimator::resetAnimationState() { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ASSERT(m_runState != RunState::RunningOnCompositorButNeedsUpdate); | 169 ASSERT(m_runState != RunState::RunningOnCompositorButNeedsUpdate); |
| 170 ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId); | 170 ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId); |
| 171 } | 171 } |
| 172 | 172 |
| 173 DEFINE_TRACE(ProgrammaticScrollAnimator) { | 173 DEFINE_TRACE(ProgrammaticScrollAnimator) { |
| 174 visitor->trace(m_scrollableArea); | 174 visitor->trace(m_scrollableArea); |
| 175 ScrollAnimatorCompositorCoordinator::trace(visitor); | 175 ScrollAnimatorCompositorCoordinator::trace(visitor); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace blink | 178 } // namespace blink |
| OLD | NEW |