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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Add nullcheck for m_layerTreeView in WebViewImpl Created 4 years 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
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 6c518751ce4e3c3eb3ebe30780edf00cdb91accf..acef5cc6e480a17276aef8d66f4f77de4260c496 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -672,18 +672,8 @@ void RenderWidgetCompositor::clearRootLayer() {
layer_tree_host_->GetLayerTree()->SetRootLayer(scoped_refptr<cc::Layer>());
}
-void RenderWidgetCompositor::attachCompositorAnimationTimeline(
- cc::AnimationTimeline* compositor_timeline) {
- DCHECK(animation_host_);
- DCHECK(compositor_deps_->IsThreadedAnimationEnabled());
- animation_host_->AddAnimationTimeline(compositor_timeline);
-}
-
-void RenderWidgetCompositor::detachCompositorAnimationTimeline(
- cc::AnimationTimeline* compositor_timeline) {
- DCHECK(animation_host_);
- DCHECK(compositor_deps_->IsThreadedAnimationEnabled());
- animation_host_->RemoveAnimationTimeline(compositor_timeline);
+cc::AnimationHost* RenderWidgetCompositor::compositorAnimationHost() {
+ return animation_host_.get();
}
void RenderWidgetCompositor::setViewportSize(

Powered by Google App Engine
This is Rietveld 408576698