| 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 900c5aa53bfb5c3a7041a26910ab685ef2cac7a4..df78bb9d0fe56d6d186c7311cad817385c851e77 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(
|
|
|