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

Unified Diff: chrome/browser/android/vr_shell/easing.h

Issue 2696293002: Adds in-out easing type. (Closed)
Patch Set: Rebased to ToT Created 3 years, 10 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 | « no previous file | chrome/browser/android/vr_shell/easing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/easing.h
diff --git a/chrome/browser/android/vr_shell/easing.h b/chrome/browser/android/vr_shell/easing.h
index 2ef0617cc686822193d553f50e9e0b4563690fee..069815401f11f99cbb799cf0c8a4b7c9fb7ebe62 100644
--- a/chrome/browser/android/vr_shell/easing.h
+++ b/chrome/browser/android/vr_shell/easing.h
@@ -16,6 +16,7 @@ enum EasingType {
CUBICBEZIER,
EASEIN,
EASEOUT,
+ EASEINOUT,
};
// Abstract base class for custom interpolators, mapping linear input between
@@ -78,6 +79,17 @@ class EaseOut : public Easing {
DISALLOW_COPY_AND_ASSIGN(EaseOut);
};
+// Starts with EaseIn and finishes with EaseOut.
+class EaseInOut : public Easing {
+ public:
+ explicit EaseInOut(double power);
+ double CalculateValueImpl(double input) override;
+
+ private:
+ EaseIn ease_in_;
+ DISALLOW_COPY_AND_ASSIGN(EaseInOut);
+};
+
} // namespace easing
} // namespace vr_shell
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/easing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698