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

Unified Diff: cc/animation/element_animations.h

Issue 2340923003: CC Animation: Rework iterations over players to use the range-based for loop. (Closed)
Patch Set: Rebase. Created 4 years, 2 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/animation_player.cc ('k') | cc/animation/element_animations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.h
diff --git a/cc/animation/element_animations.h b/cc/animation/element_animations.h
index 5ee709d27161b603d33f11e4b79d4ef93377becb..5b10aab95e4308746cb80700a3165c3813cc570b 100644
--- a/cc/animation/element_animations.h
+++ b/cc/animation/element_animations.h
@@ -60,7 +60,7 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
bool IsEmpty() const;
typedef base::ObserverList<AnimationPlayer> PlayersList;
- PlayersList& players_list() const { return *players_list_.get(); }
+ const PlayersList& players_list() const { return players_list_; }
// Ensures that the list of active animations on the main thread and the impl
// thread are kept in sync. This function does not take ownership of the impl
@@ -199,7 +199,7 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
static TargetProperties GetPropertiesMaskForAnimationState();
- std::unique_ptr<PlayersList> players_list_;
+ PlayersList players_list_;
AnimationHost* animation_host_;
ElementId element_id_;
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/animation/element_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698