| Index: Source/core/animation/AnimationTimeline.h
|
| diff --git a/Source/core/animation/AnimationTimeline.h b/Source/core/animation/AnimationTimeline.h
|
| index badad7c28c761dea0c45da560778fdd6c80e4edf..f4abaaf5fec1447386e775ad7c2adccc4b2dac7b 100644
|
| --- a/Source/core/animation/AnimationTimeline.h
|
| +++ b/Source/core/animation/AnimationTimeline.h
|
| @@ -37,6 +37,7 @@
|
| #include "core/dom/Element.h"
|
| #include "platform/Timer.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "public/platform/WebCompositorAnimationTimeline.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/RefPtr.h"
|
| #include "wtf/Vector.h"
|
| @@ -76,6 +77,9 @@ public:
|
| {
|
| ASSERT(m_players.contains(player));
|
| m_players.remove(player);
|
| +
|
| + if (m_compositorTimeline)
|
| + m_compositorTimeline->playerDestroyed(*player);
|
| }
|
| #endif
|
|
|
| @@ -97,6 +101,8 @@ public:
|
| void setPlaybackRate(double);
|
| double playbackRate() const;
|
|
|
| + WebCompositorAnimationTimeline* compositorTimeline() const { return m_compositorTimeline.get(); }
|
| +
|
| Document* document() { return m_document.get(); }
|
| #if !ENABLE(OILPAN)
|
| void detachFromDocument();
|
| @@ -125,6 +131,8 @@ private:
|
| OwnPtrWillBeMember<PlatformTiming> m_timing;
|
| double m_lastCurrentTimeInternal;
|
|
|
| + OwnPtr<WebCompositorAnimationTimeline> m_compositorTimeline;
|
| +
|
| class AnimationTimelineTiming final : public PlatformTiming {
|
| public:
|
| AnimationTimelineTiming(AnimationTimeline* timeline)
|
|
|