#include "third_party/blink/renderer/modules/animationworklet/animator.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_animate_callback.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_state_callback.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_workletanimationeffect_workletgroupeffect.h"
#include "third_party/blink/renderer/modules/animationworklet/animator_definition.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "v8/include/v8.h"
namespace blink {
Animator::Animator(v8::Isolate* isolate,
AnimatorDefinition* definition,
v8::Local<v8::Value> instance,
const String& name,
WorkletAnimationOptions options,
const Vector<std::optional<base::TimeDelta>>& local_times,
const Vector<Timing>& timings,
const Vector<Timing::NormalizedTiming>& normalized_timings)
: … { … }
Animator::~Animator() = default;
void Animator::Trace(Visitor* visitor) const { … }
bool Animator::Animate(
v8::Isolate* isolate,
double current_time,
AnimationWorkletDispatcherOutput::AnimationState* output) { … }
Vector<Timing> Animator::GetTimings() const { … }
Vector<Timing::NormalizedTiming> Animator::GetNormalizedTimings() const { … }
bool Animator::IsStateful() const { … }
v8::Local<v8::Value> Animator::State(v8::Isolate* isolate,
ExceptionState& exception_state) { … }
}