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

Unified Diff: src/core/SkGeometry.h

Issue 1633143002: move more geometry to simd (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: confirmed that only gm tests that call cubic eval change Created 4 years, 11 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 | src/core/SkGeometry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGeometry.h
diff --git a/src/core/SkGeometry.h b/src/core/SkGeometry.h
index 6ac7d5d01125b5cd96d9efbce51633571d54585d..935967ea784ba2118f00d070cce05becc466dab1 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]
« no previous file with comments | « no previous file | src/core/SkGeometry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698