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

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

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Allocate on stack in unit tests. 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698