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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1739743003: Blink Compositor Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude histograms.xml Created 4 years, 10 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 | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6bdb139501906ac31f7a596d3822d692cc97bea6..0a2b40efd1bd152d08c77d37cf4bf9eaeca6d419 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -431,7 +431,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
, m_layerTreeView(nullptr)
, m_rootLayer(nullptr)
, m_rootGraphicsLayer(nullptr)
- , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium(this)))
+ , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium()))
, m_matchesHeuristicsForGpuRasterization(false)
, m_flingModifier(0)
, m_flingSourceDevice(WebGestureDeviceUninitialized)
@@ -4273,12 +4273,6 @@ PaintLayerCompositor* WebViewImpl::compositor() const
return document->layoutView()->compositor();
}
-void WebViewImpl::registerForAnimations(WebLayer* layer)
-{
- if (m_layerTreeView)
- m_layerTreeView->registerForAnimations(layer);
-}
-
GraphicsLayer* WebViewImpl::rootGraphicsLayer()
{
return m_rootGraphicsLayer;
@@ -4324,7 +4318,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()->isThreadedAnimationEnabled() && m_layerTreeView) {
+ if (Platform::current()->isThreadedAnimationEnabled() && m_layerTreeView) {
m_linkHighlightsTimeline = adoptPtr(CompositorFactory::current().createAnimationTimeline());
attachCompositorAnimationTimeline(m_linkHighlightsTimeline.get());
}
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698