Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index dec2d18f5d250c15539ddaa7c7a368aad2a2e26a..0f53758ccd41e35968393aabbf458306d0fdf1a8 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -112,6 +112,7 @@ |
#include "platform/exported/WebActiveGestureAnimation.h" |
#include "platform/fonts/FontCache.h" |
#include "platform/graphics/Color.h" |
+#include "platform/graphics/CompositorFactory.h" |
#include "platform/graphics/FirstPaintInvalidationTracking.h" |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/Image.h" |
@@ -4280,16 +4281,16 @@ void WebViewImpl::scheduleAnimation() |
m_client->scheduleAnimation(); |
} |
-void WebViewImpl::attachCompositorAnimationTimeline(WebCompositorAnimationTimeline* timeline) |
+void WebViewImpl::attachCompositorAnimationTimeline(CompositorAnimationTimeline* timeline) |
{ |
if (m_layerTreeView) |
- m_layerTreeView->attachCompositorAnimationTimeline(timeline); |
+ m_layerTreeView->attachCompositorAnimationTimeline(timeline->animationTimeline()); |
} |
-void WebViewImpl::detachCompositorAnimationTimeline(WebCompositorAnimationTimeline* timeline) |
+void WebViewImpl::detachCompositorAnimationTimeline(CompositorAnimationTimeline* timeline) |
{ |
if (m_layerTreeView) |
- m_layerTreeView->detachCompositorAnimationTimeline(timeline); |
+ m_layerTreeView->detachCompositorAnimationTimeline(timeline->animationTimeline()); |
} |
void WebViewImpl::initializeLayerTreeView() |
@@ -4311,8 +4312,7 @@ void WebViewImpl::initializeLayerTreeView() |
ASSERT(m_layerTreeView || !m_client || m_client->allowsBrokenNullLayerTreeView()); |
if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platform::current()->isThreadedAnimationEnabled() && m_layerTreeView) { |
- ASSERT(Platform::current()->compositorSupport()); |
- m_linkHighlightsTimeline = adoptPtr(Platform::current()->compositorSupport()->createAnimationTimeline()); |
+ m_linkHighlightsTimeline = adoptPtr(CompositorFactory::current().createAnimationTimeline()); |
attachCompositorAnimationTimeline(m_linkHighlightsTimeline.get()); |
} |