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

Unified Diff: chrome/browser/android/vr_shell/ui_scene.cc

Issue 2696293002: Adds in-out easing type. (Closed)
Patch Set: 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
Index: chrome/browser/android/vr_shell/ui_scene.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index 020e307e94c255163fd4d3d8fac6f71025c993ce..1aceb4d228e4305b4018dab5ee493e65ab75e9e1 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -174,6 +174,12 @@ std::unique_ptr<easing::Easing> ParseEasing(
result.reset(new easing::EaseOut(pow));
break;
}
+ case easing::EasingType::EASEINOUT: {
+ double pow;
+ CHECK(dict.GetDouble("pow", &pow));
+ result.reset(new easing::EaseInOut(pow));
cjgrant 2017/02/16 15:10:25 Consider moving this function (or file!) to use:
tiborg 2017/02/16 18:39:33 Done.
+ break;
+ }
}
return result;
}

Powered by Google App Engine
This is Rietveld 408576698