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

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: Rebase on another LTH refactor CL. 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 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(

Powered by Google App Engine
This is Rietveld 408576698