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

Unified Diff: cc/animation/element_animations.h

Issue 2189813002: ElementAnimations should hold an ObservableList of AnimationPlayers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows bot 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
« no previous file with comments | « cc/animation/animation_player.h ('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 a46560450b27038a547b6c5ded9651837769ef14..93f4f0e9f0d516ebcad6ed1284aec34dcdb4d677 100644
--- a/cc/animation/element_animations.h
+++ b/cc/animation/element_animations.h
@@ -9,9 +9,9 @@
#include <memory>
#include <vector>
-#include "base/containers/linked_list.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/observer_list.h"
#include "base/time/time.h"
#include "cc/animation/animation.h"
#include "cc/animation/animation_curve.h"
@@ -62,9 +62,8 @@ class CC_EXPORT ElementAnimations : public base::RefCounted<ElementAnimations> {
void RemovePlayer(AnimationPlayer* player);
bool IsEmpty() const;
- typedef base::LinkedList<AnimationPlayer> PlayersList;
- typedef base::LinkNode<AnimationPlayer> PlayersListNode;
- const PlayersList& players_list() const { return *players_list_.get(); }
+ typedef base::ObserverList<AnimationPlayer> PlayersList;
+ PlayersList& players_list() const { return *players_list_.get(); }
// 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
« no previous file with comments | « cc/animation/animation_player.h ('k') | cc/animation/element_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698