diff options
author | caryclark <caryclark@google.com> | 2016-01-26 17:02:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 17:02:30 -0800 |
commit | 5ba2b9612ae4bc3a244bf45f1ec55c3a5a41e181 (patch) | |
tree | 6d3a22524acc03524e980eeab9f43391c8a6c5bf /src/core/SkGeometry.h | |
parent | 727b7d27afd01ab76771ba0b3279208cff728d1a (diff) |
move more geometry to simd
Remove duplicate quad and cubic code around
computing the polynomial coefficients, and
use common SIMD-based code instead.
R=reed@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1633143002
Review URL: https://codereview.chromium.org/1633143002
Diffstat (limited to 'src/core/SkGeometry.h')
-rw-r--r-- | src/core/SkGeometry.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/SkGeometry.h b/src/core/SkGeometry.h index 6ac7d5d011..935967ea78 100644 --- a/src/core/SkGeometry.h +++ b/src/core/SkGeometry.h @@ -21,11 +21,6 @@ static inline SkPoint to_point(const Sk2s& x) { return point; } -static inline Sk2s sk2s_cubic_eval(const Sk2s& A, const Sk2s& B, const Sk2s& C, const Sk2s& D, - const Sk2s& t) { - return ((A * t + B) * t + C) * t + D; -} - static Sk2s times_2(const Sk2s& value) { return value + value; } @@ -45,16 +40,6 @@ SkPoint SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t); */ void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr); -/** - * output is : eval(t) == coeff[0] * t^2 + coeff[1] * t + coeff[2] - */ -void SkQuadToCoeff(const SkPoint pts[3], SkPoint coeff[3]); - -/** - * output is : eval(t) == coeff[0] * t^3 + coeff[1] * t^2 + coeff[2] * t + coeff[3] - */ -void SkCubicToCoeff(const SkPoint pts[4], SkPoint coeff[4]); - /** Given a src quadratic bezier, chop it at the specified t value, where 0 < t < 1, and return the two new quadratics in dst: dst[0..2] and dst[2..4] |