Index: Source/core/animation/AnimationTimeline.h |
diff --git a/Source/core/animation/AnimationTimeline.h b/Source/core/animation/AnimationTimeline.h |
index 95c5912c8a118c11f35e7ed988ed5b1d18709fe0..7bb53dfe012193259502132d26e0b21eed495dd0 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) |