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

Unified Diff: ui/compositor/layer_animator.h

Issue 2363733004: UI Compositor Animation: Remove cc::ElementAnimations state storage. (Closed)
Patch Set: Reparent. 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 | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator.h
diff --git a/ui/compositor/layer_animator.h b/ui/compositor/layer_animator.h
index 74995eeff0b193c92459e46b4c8af12b965273e9..2895842ae88d47a76826dd735d4d181e3eb11552 100644
--- a/ui/compositor/layer_animator.h
+++ b/ui/compositor/layer_animator.h
@@ -117,9 +117,9 @@ class COMPOSITOR_EXPORT LayerAnimator
void SwitchToLayer(scoped_refptr<cc::Layer> new_layer);
// Attach AnimationPlayer to Layer and AnimationTimeline
- void SetCompositor(Compositor* compositor);
+ void AttachLayerAndTimeline(Compositor* compositor);
// Detach AnimationPlayer from Layer and AnimationTimeline
- void ResetCompositor(Compositor* compositor);
+ void DetachLayerAndTimeline(Compositor* compositor);
cc::AnimationPlayer* GetAnimationPlayerForTesting() const;
@@ -406,11 +406,6 @@ class COMPOSITOR_EXPORT LayerAnimator
// aborted.
base::ObserverList<LayerAnimationObserver> observers_;
- // We store a state of ElementAnimations here to save it in
- // ResetCompositor/SetCompositor scope.
- // TODO(loyso): Remove it. crbug.com/592873.
- scoped_refptr<cc::ElementAnimations> element_animations_state_;
-
DISALLOW_COPY_AND_ASSIGN(LayerAnimator);
};
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698