Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1845)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index dd6d81c8600697c8b93816bf401129fc8ddd57ac..2c229b7e38933c2c56cdaf20657c4e59befac6ca 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -410,7 +410,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
, m_rootLayer(0)
, m_rootGraphicsLayer(0)
, m_rootTransformLayer(0)
- , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this)))
+ , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium()))
, m_matchesHeuristicsForGpuRasterization(false)
, m_recreatingGraphicsContext(false)
, m_flingModifier(0)
@@ -4228,12 +4228,6 @@ DeprecatedPaintLayerCompositor* WebViewImpl::compositor() const
return page()->deprecatedLocalMainFrame()->document()->layoutView()->compositor();
}
-void WebViewImpl::registerForAnimations(WebLayer* layer)
-{
- if (m_layerTreeView)
- m_layerTreeView->registerForAnimations(layer);
-}
-
GraphicsLayer* WebViewImpl::rootGraphicsLayer()
{
return m_rootGraphicsLayer;
@@ -4277,7 +4271,7 @@ void WebViewImpl::initializeLayerTreeView()
// make this assert necessary. We should make them not hit this code and then delete allowsBrokenNullLayerTreeView.
ASSERT(m_layerTreeView || !m_client || m_client->allowsBrokenNullLayerTreeView());
- if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled() && Platform::current()->compositorSupport() && m_layerTreeView) {
+ if (m_layerTreeView) {
m_linkHighlightsTimeline = adoptPtr(Platform::current()->compositorSupport()->createAnimationTimeline());
attachCompositorAnimationTimeline(m_linkHighlightsTimeline.get());
}
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698