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

Unified Diff: cc/test/animation_test_common.cc

Issue 1921583003: CC Animation: Let MutatorHostClient deals with elements instead of layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@elementid
Patch Set: Rename methods in ElementAnimations Created 4 years, 8 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 | « cc/animation/element_animations_unittest.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 6d61dd18f085360c9ecc1529f8e2a5d05300454f..3ce811a7e0541d550c446ad2428d3c6598da7643 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -311,7 +311,7 @@ void AddAnimationToLayerWithExistingPlayer(
scoped_refptr<AnimationTimeline> timeline,
std::unique_ptr<Animation> animation) {
scoped_refptr<ElementAnimations> element_animations =
- timeline->animation_host()->GetElementAnimationsForLayerId(layer_id);
+ timeline->animation_host()->GetElementAnimationsForElementId(layer_id);
DCHECK(element_animations);
element_animations->AddAnimation(std::move(animation));
}
@@ -321,7 +321,7 @@ void RemoveAnimationFromLayerWithExistingPlayer(
scoped_refptr<AnimationTimeline> timeline,
int animation_id) {
scoped_refptr<ElementAnimations> element_animations =
- timeline->animation_host()->GetElementAnimationsForLayerId(layer_id);
+ timeline->animation_host()->GetElementAnimationsForElementId(layer_id);
DCHECK(element_animations);
element_animations->RemoveAnimation(animation_id);
}
@@ -331,7 +331,7 @@ Animation* GetAnimationFromLayerWithExistingPlayer(
scoped_refptr<AnimationTimeline> timeline,
int animation_id) {
scoped_refptr<ElementAnimations> element_animations =
- timeline->animation_host()->GetElementAnimationsForLayerId(layer_id);
+ timeline->animation_host()->GetElementAnimationsForElementId(layer_id);
DCHECK(element_animations);
return element_animations->GetAnimationById(animation_id);
}
@@ -400,7 +400,7 @@ void AbortAnimationsOnLayerWithPlayer(int layer_id,
scoped_refptr<AnimationTimeline> timeline,
TargetProperty::Type target_property) {
scoped_refptr<ElementAnimations> element_animations =
- timeline->animation_host()->GetElementAnimationsForLayerId(layer_id);
+ timeline->animation_host()->GetElementAnimationsForElementId(layer_id);
DCHECK(element_animations);
element_animations->AbortAnimations(target_property);
}
« no previous file with comments | « cc/animation/element_animations_unittest.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698