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

Unified Diff: cc/animation/layer_animation_controller.h

Issue 1881373002: CC Animation: Erase AnimationRegistrar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@private
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.cc ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_animation_controller.h
diff --git a/cc/animation/layer_animation_controller.h b/cc/animation/layer_animation_controller.h
index 4a7b1873e73c3b179f805c6a9552af0791aee3f1..73c7d7690ce4d6abf900af50a523ba2d8a4d2f6d 100644
--- a/cc/animation/layer_animation_controller.h
+++ b/cc/animation/layer_animation_controller.h
@@ -29,7 +29,7 @@ namespace cc {
class AnimationDelegate;
class AnimationEvents;
-class AnimationRegistrar;
+class AnimationHost;
class FilterOperations;
class KeyframeValueList;
class LayerAnimationValueObserver;
@@ -92,8 +92,8 @@ class CC_EXPORT LayerAnimationController
bool IsCurrentlyAnimatingProperty(TargetProperty::Type target_property,
ObserverType observer_type) const;
- void SetAnimationRegistrar(AnimationRegistrar* registrar);
- AnimationRegistrar* animation_registrar() { return registrar_; }
+ void SetAnimationHost(AnimationHost* host);
+ AnimationHost* animation_host() { return host_; }
void NotifyAnimationStarted(const AnimationEvent& event);
void NotifyAnimationFinished(const AnimationEvent& event);
@@ -226,11 +226,11 @@ class CC_EXPORT LayerAnimationController
bool HasValueObserver();
bool HasActiveValueObserver();
- AnimationRegistrar* registrar_;
+ AnimationHost* host_;
int id_;
std::vector<std::unique_ptr<Animation>> animations_;
- // This is used to ensure that we don't spam the registrar.
+ // This is used to ensure that we don't spam the animation host.
bool is_active_;
base::TimeTicks last_tick_time_;
« no previous file with comments | « cc/animation/element_animations.cc ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698