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

Unified Diff: ui/gfx/geometry/cubic_bezier.h

Issue 2272303002: Blink Animation: Limit maximum accuracy to avoid hanging for long durations. (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 | « third_party/WebKit/Source/platform/animation/AnimationUtilities.h ('k') | ui/gfx/geometry/cubic_bezier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/cubic_bezier.h
diff --git a/ui/gfx/geometry/cubic_bezier.h b/ui/gfx/geometry/cubic_bezier.h
index 10b9a9121a812cacaffeeaca6d1743e38c0a4369..013123999c5c729543359685474f7924bc79a1cd 100644
--- a/ui/gfx/geometry/cubic_bezier.h
+++ b/ui/gfx/geometry/cubic_bezier.h
@@ -32,6 +32,8 @@ class GFX_EXPORT CubicBezier {
return (3.0 * ay_ * t + 2.0 * by_) * t + cy_;
}
+ static double GetDefaultEpsilon();
+
// Given an x value, find a parametric value it came from.
// x must be in [0, 1] range. Doesn't use gradients.
double SolveCurveX(double x, double epsilon) const;
« no previous file with comments | « third_party/WebKit/Source/platform/animation/AnimationUtilities.h ('k') | ui/gfx/geometry/cubic_bezier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698