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

Unified Diff: ui/compositor/scoped_layer_animation_settings.h

Issue 2215043002: Removing unused functionality from ScopedLayerAnimationSettings: inverse animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/scoped_layer_animation_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/scoped_layer_animation_settings.h
diff --git a/ui/compositor/scoped_layer_animation_settings.h b/ui/compositor/scoped_layer_animation_settings.h
index 9cb84641d74db5e5e58e36684bda530c2bab3775..2b99c63e97633847fdc8f4911ce9b5b7353bf3e5 100644
--- a/ui/compositor/scoped_layer_animation_settings.h
+++ b/ui/compositor/scoped_layer_animation_settings.h
@@ -17,7 +17,6 @@ namespace ui {
class ImplicitAnimationObserver;
class LayerAnimationObserver;
-class InvertingObserver;
// Scoped settings allow you to temporarily change the animator's settings and
// these changes are reverted when the object is destroyed. NOTE: when the
@@ -45,14 +44,6 @@ class COMPOSITOR_EXPORT ScopedLayerAnimationSettings {
void SetPreemptionStrategy(LayerAnimator::PreemptionStrategy strategy);
LayerAnimator::PreemptionStrategy GetPreemptionStrategy() const;
- // Sets the base layer whose animation will be countered.
- void SetInverselyAnimatedBaseLayer(Layer* base);
-
- // Adds the layer to be counter-animated when a transform animation is
- // scheduled on the animator_. Must call SetInverselyAnimatedBaseLayer with
- // the layer associated with animator_ before animating.
- void AddInverselyAnimatedLayer(Layer* inverse_layer);
-
private:
scoped_refptr<LayerAnimator> animator_;
bool old_is_transition_duration_locked_;
@@ -60,7 +51,6 @@ class COMPOSITOR_EXPORT ScopedLayerAnimationSettings {
gfx::Tween::Type old_tween_type_;
LayerAnimator::PreemptionStrategy old_preemption_strategy_;
std::set<ImplicitAnimationObserver*> observers_;
- std::unique_ptr<InvertingObserver> inverse_observer_;
DISALLOW_COPY_AND_ASSIGN(ScopedLayerAnimationSettings);
};
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/scoped_layer_animation_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698