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

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: Fixes according to code review. 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: 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 287d11be6d9178d5f7f7111d493b59d82be353f9..b268ab637593c600e5bcbcd247ebe7047843371d 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)

Powered by Google App Engine
This is Rietveld 408576698