Lines Matching refs:SkScalar

23 bool SkCubicClipper::ChopMonoAtY(const SkPoint pts[4], SkScalar y, SkScalar* t) {  in ChopMonoAtY()
24 SkScalar ycrv[4]; in ChopMonoAtY()
34 SkScalar t1 = ycrv[0] / (ycrv[0] - ycrv[3]); in ChopMonoAtY()
37 const SkScalar tol = SK_Scalar1 / 16384; // This leaves 2 fixed noise bits. in ChopMonoAtY()
38 SkScalar t0; in ChopMonoAtY()
44 SkScalar y01 = SkScalarInterp(ycrv[0], ycrv[1], t0); in ChopMonoAtY()
45 SkScalar y12 = SkScalarInterp(ycrv[1], ycrv[2], t0); in ChopMonoAtY()
46 SkScalar y23 = SkScalarInterp(ycrv[2], ycrv[3], t0); in ChopMonoAtY()
47 SkScalar y012 = SkScalarInterp(y01, y12, t0); in ChopMonoAtY()
48 SkScalar y123 = SkScalarInterp(y12, y23, t0); in ChopMonoAtY()
49 SkScalar y0123 = SkScalarInterp(y012, y123, t0); in ChopMonoAtY()
50 SkScalar yder = (y123 - y012) * 3; in ChopMonoAtY()
67 SkScalar tNeg, tPos; // Negative and positive function parameters. in ChopMonoAtY()
83 const SkScalar tol = SK_Scalar1 / 65536; // 1 for fixed, 1e-5 for float. in ChopMonoAtY()
86 SkScalar tMid = (tPos + tNeg) / 2; in ChopMonoAtY()
87 SkScalar y01 = SkScalarInterp(ycrv[0], ycrv[1], tMid); in ChopMonoAtY()
88 SkScalar y12 = SkScalarInterp(ycrv[1], ycrv[2], tMid); in ChopMonoAtY()
89 SkScalar y23 = SkScalarInterp(ycrv[2], ycrv[3], tMid); in ChopMonoAtY()
90 SkScalar y012 = SkScalarInterp(y01, y12, tMid); in ChopMonoAtY()
91 SkScalar y123 = SkScalarInterp(y12, y23, tMid); in ChopMonoAtY()
92 SkScalar y0123 = SkScalarInterp(y012, y123, tMid); in ChopMonoAtY()
124 const SkScalar ctop = fClip.fTop; in clipCubic()
125 const SkScalar cbot = fClip.fBottom; in clipCubic()
130 SkScalar t; in clipCubic()