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

Unified Diff: ui/compositor/transform_animation_curve_adapter.h

Issue 22861008: Add support for inverse transform animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed parent/child naming. Created 7 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
Index: ui/compositor/transform_animation_curve_adapter.h
diff --git a/ui/compositor/transform_animation_curve_adapter.h b/ui/compositor/transform_animation_curve_adapter.h
index 7b6bdcea52b33fa073faad3f3ddce2f76ab5ffd9..1f88f0e26515cf546999fc3bf8e7207c31945998 100644
--- a/ui/compositor/transform_animation_curve_adapter.h
+++ b/ui/compositor/transform_animation_curve_adapter.h
@@ -36,6 +36,25 @@ class TransformAnimationCurveAdapter :public cc::TransformAnimationCurve {
base::TimeDelta duration_;
};
+class InverseTransformCurveAdapter :public cc::TransformAnimationCurve {
Ian Vollick 2013/08/27 19:54:18 nit: space after the colon.
avallee 2013/08/27 20:19:42 Done.
+ public:
+ InverseTransformCurveAdapter(TransformAnimationCurveAdapter base_curve,
+ gfx::Transform initial_value,
+ base::TimeDelta duration);
+
+ virtual ~InverseTransformCurveAdapter();
+
+ virtual double Duration() const OVERRIDE;
+ virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE;
+ virtual gfx::Transform GetValue(double t) const OVERRIDE;
+
+ private:
+ TransformAnimationCurveAdapter base_curve_;
+ gfx::Transform initial_value_;
+ gfx::Transform effective_initial_value_;
+ base::TimeDelta duration_;
Ian Vollick 2013/08/27 19:54:18 nit: I know this is missing elsewhere in this file
avallee 2013/08/27 20:19:42 Done.
+};
+
} // namespace ui
#endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_
« no previous file with comments | « ui/compositor/layer_animation_element_unittest.cc ('k') | ui/compositor/transform_animation_curve_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698