#include "third_party/blink/renderer/platform/animation/compositor_animation.h"
#include "cc/animation/animation_id_provider.h"
#include "cc/animation/animation_timeline.h"
#include "third_party/blink/renderer/platform/animation/compositor_animation_delegate.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
std::unique_ptr<CompositorAnimation> CompositorAnimation::Create(
std::optional<int> replaced_cc_animation_id) { … }
std::unique_ptr<CompositorAnimation>
CompositorAnimation::CreateWorkletAnimation(
cc::WorkletAnimationId worklet_animation_id,
const String& name,
double playback_rate,
std::unique_ptr<cc::AnimationOptions> options,
std::unique_ptr<cc::AnimationEffectTimings> effect_timings) { … }
CompositorAnimation::CompositorAnimation(scoped_refptr<cc::Animation> animation)
: … { … }
CompositorAnimation::~CompositorAnimation() { … }
cc::Animation* CompositorAnimation::CcAnimation() const { … }
int CompositorAnimation::CcAnimationId() const { … }
void CompositorAnimation::SetAnimationDelegate(
CompositorAnimationDelegate* delegate) { … }
void CompositorAnimation::AttachElement(const CompositorElementId& id) { … }
void CompositorAnimation::AttachPaintWorkletElement() { … }
void CompositorAnimation::DetachElement() { … }
bool CompositorAnimation::IsElementAttached() const { … }
void CompositorAnimation::AddKeyframeModel(
std::unique_ptr<cc::KeyframeModel> keyframe_model) { … }
void CompositorAnimation::RemoveKeyframeModel(int keyframe_model_id) { … }
void CompositorAnimation::PauseKeyframeModel(int keyframe_model_id,
base::TimeDelta time_offset) { … }
void CompositorAnimation::AbortKeyframeModel(int keyframe_model_id) { … }
void CompositorAnimation::UpdatePlaybackRate(double playback_rate) { … }
void CompositorAnimation::NotifyAnimationStarted(base::TimeTicks monotonic_time,
int target_property,
int group) { … }
void CompositorAnimation::NotifyAnimationFinished(
base::TimeTicks monotonic_time,
int target_property,
int group) { … }
void CompositorAnimation::NotifyAnimationAborted(base::TimeTicks monotonic_time,
int target_property,
int group) { … }
void CompositorAnimation::NotifyAnimationTakeover(
base::TimeTicks monotonic_time,
int target_property,
base::TimeTicks animation_start_time,
std::unique_ptr<gfx::AnimationCurve> curve) { … }
void CompositorAnimation::NotifyLocalTimeUpdated(
std::optional<base::TimeDelta> local_time) { … }
}