Index: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp |
diff --git a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp |
index 00f6c504a578216b5f31ba439923a0371837705e..74ab5662243682a2243e34d6e0d8715f0529ff1f 100644 |
--- a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp |
+++ b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp |
@@ -38,8 +38,9 @@ |
#include "core/page/Page.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/TraceEvent.h" |
+#include "platform/animation/CompositorAnimationTimeline.h" |
+#include "platform/graphics/CompositorFactory.h" |
#include "public/platform/Platform.h" |
-#include "public/platform/WebCompositorAnimationTimeline.h" |
#include "public/platform/WebCompositorSupport.h" |
#include <algorithm> |
@@ -78,10 +79,8 @@ AnimationTimeline::AnimationTimeline(Document* document, PlatformTiming* timing) |
else |
m_timing = timing; |
- if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platform::current()->isThreadedAnimationEnabled()) { |
- ASSERT(Platform::current()->compositorSupport()); |
- m_compositorTimeline = adoptPtr(Platform::current()->compositorSupport()->createAnimationTimeline()); |
- } |
+ if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platform::current()->isThreadedAnimationEnabled()) |
+ m_compositorTimeline = adoptPtr(CompositorFactory::current().createAnimationTimeline()); |
ASSERT(document); |
} |