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

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

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix call site in cc_perftest. Created 4 years, 4 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
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 ce6ea32b5c014b0713a6c4e495e023a85c361186..ba578dfd67e23299810e8012b6aff1840835a46e 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -690,15 +690,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(

Powered by Google App Engine
This is Rietveld 408576698