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

Unified Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp

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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
diff --git a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
index 4856ea9a7b64a2f7ab29bd38061a59a3bf829471..4157507c9d2c7aa4695cc92b09c74ab4a28b7a76 100644
--- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
+++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
@@ -77,14 +77,14 @@ void WebLayerTreeViewImplForTesting::clearRootLayer()
void WebLayerTreeViewImplForTesting::attachCompositorAnimationTimeline(cc::AnimationTimeline* compositorTimeline)
{
- ASSERT(m_layerTreeHost->animation_host());
- m_layerTreeHost->animation_host()->AddAnimationTimeline(compositorTimeline);
+ DCHECK(m_layerTreeHost->GetLayerTree()->animation_host());
+ m_layerTreeHost->GetLayerTree()->animation_host()->AddAnimationTimeline(compositorTimeline);
}
void WebLayerTreeViewImplForTesting::detachCompositorAnimationTimeline(cc::AnimationTimeline* compositorTimeline)
{
- ASSERT(m_layerTreeHost->animation_host());
- m_layerTreeHost->animation_host()->RemoveAnimationTimeline(compositorTimeline);
+ DCHECK(m_layerTreeHost->GetLayerTree()->animation_host());
+ m_layerTreeHost->GetLayerTree()->animation_host()->RemoveAnimationTimeline(compositorTimeline);
}
void WebLayerTreeViewImplForTesting::setViewportSize(const WebSize& unusedDeprecated, const WebSize& deviceViewportSize)
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698