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 1ea1f2a7e89fbab707959c29bba37c1cfde84478..a9cf77a4b0a23d26e6c56f5b071360c0534dffc5 100644 |
--- a/content/renderer/gpu/render_widget_compositor.cc |
+++ b/content/renderer/gpu/render_widget_compositor.cc |
@@ -615,7 +615,7 @@ bool RenderWidgetCompositor::BeginMainFrameRequested() const { |
} |
void RenderWidgetCompositor::SetNeedsDisplayOnAllLayers() { |
- layer_tree_host_->SetNeedsDisplayOnAllLayers(); |
+ layer_tree_host_->GetLayerTree()->SetNeedsDisplayOnAllLayers(); |
} |
void RenderWidgetCompositor::SetRasterizeOnlyVisibleContent() { |
@@ -691,15 +691,18 @@ void RenderWidgetCompositor::clearRootLayer() { |
void RenderWidgetCompositor::attachCompositorAnimationTimeline( |
cc::AnimationTimeline* compositor_timeline) { |
- DCHECK(layer_tree_host_->animation_host()); |
- layer_tree_host_->animation_host()->AddAnimationTimeline(compositor_timeline); |
+ cc::AnimationHost* animation_host = |
+ layer_tree_host_->GetLayerTree()->animation_host(); |
+ DCHECK(animation_host); |
+ animation_host->AddAnimationTimeline(compositor_timeline); |
} |
void RenderWidgetCompositor::detachCompositorAnimationTimeline( |
cc::AnimationTimeline* compositor_timeline) { |
- DCHECK(layer_tree_host_->animation_host()); |
- layer_tree_host_->animation_host()->RemoveAnimationTimeline( |
- compositor_timeline); |
+ cc::AnimationHost* animation_host = |
+ layer_tree_host_->GetLayerTree()->animation_host(); |
+ DCHECK(animation_host); |
+ animation_host->RemoveAnimationTimeline(compositor_timeline); |
} |
void RenderWidgetCompositor::setViewportSize( |