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

Unified Diff: cc/test/animation_timelines_test_common.cc

Issue 1894023002: CC Animation: Make ElementAnimations a ref-counted object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_timelines_test_common.cc
diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc
index 1f6fb9b8d66eff8232100a4ae3c7624d5f17fea1..5525032703d68077236030eecbedc99345497324 100644
--- a/cc/test/animation_timelines_test_common.cc
+++ b/cc/test/animation_timelines_test_common.cc
@@ -246,14 +246,14 @@ void AnimationTimelinesTest::AnimateLayersTransferEvents(
}
AnimationPlayer* AnimationTimelinesTest::GetPlayerForLayerId(int layer_id) {
- const ElementAnimations* element_animations =
+ const scoped_refptr<ElementAnimations> element_animations =
host_->GetElementAnimationsForLayerId(layer_id);
return element_animations ? element_animations->players_list().head()->value()
: nullptr;
}
AnimationPlayer* AnimationTimelinesTest::GetImplPlayerForLayerId(int layer_id) {
- const ElementAnimations* element_animations =
+ const scoped_refptr<ElementAnimations> element_animations =
host_impl_->GetElementAnimationsForLayerId(layer_id);
return element_animations ? element_animations->players_list().head()->value()
: nullptr;
« no previous file with comments | « cc/animation/element_animations_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698