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

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

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 | « ui/gfx/geometry/cubic_bezier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/cubic_bezier.cc
diff --git a/ui/gfx/geometry/cubic_bezier.cc b/ui/gfx/geometry/cubic_bezier.cc
index f438c9e72bf62d2df1e556062b77e6cf24ab99e7..e42d893d7f1de1fb1c1acdd2b0468076fae531c2 100644
--- a/ui/gfx/geometry/cubic_bezier.cc
+++ b/ui/gfx/geometry/cubic_bezier.cc
@@ -132,6 +132,10 @@ void CubicBezier::InitRange(double p1y, double p2y) {
range_max_ = std::max(std::max(range_max_, sol1), sol2);
}
+double CubicBezier::GetDefaultEpsilon() {
+ return kBezierEpsilon;
+}
+
double CubicBezier::SolveCurveX(double x, double epsilon) const {
DCHECK_GE(x, 0.0);
DCHECK_LE(x, 1.0);
« no previous file with comments | « ui/gfx/geometry/cubic_bezier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698