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

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

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Allocate on stack in unit tests. Created 4 years 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 9bcb43fdd6903cd4ba709123d5faf441914da313..fb749cad5d8523273d33b9bd322ec34d00cec622 100644
--- a/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
+++ b/third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp
@@ -62,16 +62,8 @@ void WebLayerTreeViewImplForTesting::clearRootLayer() {
m_layerTreeHost->GetLayerTree()->SetRootLayer(scoped_refptr<cc::Layer>());
}
-void WebLayerTreeViewImplForTesting::attachCompositorAnimationTimeline(
- cc::AnimationTimeline* compositorTimeline) {
- DCHECK(m_animationHost);
- m_animationHost->AddAnimationTimeline(compositorTimeline);
-}
-
-void WebLayerTreeViewImplForTesting::detachCompositorAnimationTimeline(
- cc::AnimationTimeline* compositorTimeline) {
- DCHECK(m_animationHost);
- m_animationHost->RemoveAnimationTimeline(compositorTimeline);
+cc::AnimationHost* WebLayerTreeViewImplForTesting::compositorAnimationHost() {
+ return m_animationHost.get();
}
void WebLayerTreeViewImplForTesting::setViewportSize(

Powered by Google App Engine
This is Rietveld 408576698