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 0587c8118e1a33473fd23c174be70893b03b8b1b..fc1cd4811600f6e0f544399fe67ca69cc1186fcc 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -96,6 +96,7 @@ |
#include "modules/encryptedmedia/MediaKeysController.h" |
#include "modules/storage/StorageNamespaceController.h" |
#include "modules/webgl/WebGLRenderingContext.h" |
+#include "platform/CompositorFactory.h" |
#include "platform/ContextMenu.h" |
#include "platform/ContextMenuItem.h" |
#include "platform/Cursor.h" |
@@ -4347,16 +4348,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() |
@@ -4378,8 +4379,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()); |
} |