#include "third_party/blink/renderer/core/scroll/scroll_animator_compositor_coordinator.h"
#include <memory>
#include "cc/animation/animation_host.h"
#include "cc/animation/animation_timeline.h"
#include "cc/animation/scroll_offset_animation_curve.h"
#include "cc/layers/picture_layer.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/scroll/scrollable_area.h"
#include "third_party/blink/renderer/platform/animation/compositor_animation.h"
namespace blink {
ScrollAnimatorCompositorCoordinator::ScrollAnimatorCompositorCoordinator()
: … { … }
ScrollAnimatorCompositorCoordinator::~ScrollAnimatorCompositorCoordinator() =
default;
void ScrollAnimatorCompositorCoordinator::Dispose() { … }
void ScrollAnimatorCompositorCoordinator::DetachElement() { … }
void ScrollAnimatorCompositorCoordinator::ResetAnimationState() { … }
bool ScrollAnimatorCompositorCoordinator::HasAnimationThatRequiresService()
const { … }
bool ScrollAnimatorCompositorCoordinator::AddAnimation(
std::unique_ptr<cc::KeyframeModel> keyframe_model) { … }
void ScrollAnimatorCompositorCoordinator::RemoveAnimation() { … }
void ScrollAnimatorCompositorCoordinator::AbortAnimation() { … }
void ScrollAnimatorCompositorCoordinator::CancelAnimation() { … }
void ScrollAnimatorCompositorCoordinator::TakeOverCompositorAnimation() { … }
void ScrollAnimatorCompositorCoordinator::CompositorAnimationFinished(
int group_id) { … }
bool ScrollAnimatorCompositorCoordinator::ReattachCompositorAnimationIfNeeded(
cc::AnimationTimeline* timeline) { … }
void ScrollAnimatorCompositorCoordinator::NotifyAnimationStarted(
base::TimeDelta monotonic_time,
int group) { … }
void ScrollAnimatorCompositorCoordinator::NotifyAnimationFinished(
base::TimeDelta monotonic_time,
int group) { … }
void ScrollAnimatorCompositorCoordinator::NotifyAnimationAborted(
base::TimeDelta monotonic_time,
int group) { … }
CompositorAnimation*
ScrollAnimatorCompositorCoordinator::GetCompositorAnimation() const { … }
gfx::PointF
ScrollAnimatorCompositorCoordinator::CompositorOffsetFromBlinkOffset(
ScrollOffset offset) { … }
ScrollOffset
ScrollAnimatorCompositorCoordinator::BlinkOffsetFromCompositorOffset(
gfx::PointF position) { … }
bool ScrollAnimatorCompositorCoordinator::HasImplOnlyAnimationUpdate() const { … }
CompositorElementId ScrollAnimatorCompositorCoordinator::GetScrollElementId()
const { … }
void ScrollAnimatorCompositorCoordinator::UpdateImplOnlyCompositorAnimations() { … }
void ScrollAnimatorCompositorCoordinator::UpdateCompositorAnimations() { … }
void ScrollAnimatorCompositorCoordinator::ScrollOffsetChanged(
const ScrollOffset& offset,
mojom::blink::ScrollType scroll_type) { … }
void ScrollAnimatorCompositorCoordinator::AdjustImplOnlyScrollOffsetAnimation(
const gfx::Vector2d& adjustment) { … }
void ScrollAnimatorCompositorCoordinator::
TakeOverImplOnlyScrollOffsetAnimation() { … }
String ScrollAnimatorCompositorCoordinator::RunStateAsText() const { … }
}