Lines Matching refs:SkPoint
66 uint32_t GrPathUtils::quadraticPointCount(const SkPoint points[], SkScalar tol) { in quadraticPointCount()
71 uint32_t GrPathUtils::generateQuadraticPoints(const SkPoint& p0, in generateQuadraticPoints()
72 const SkPoint& p1, in generateQuadraticPoints()
73 const SkPoint& p2, in generateQuadraticPoints()
75 SkPoint** points, in generateQuadraticPoints()
84 SkPoint q[] = { in generateQuadraticPoints()
88 SkPoint r = { SkScalarAve(q[0].fX, q[1].fX), SkScalarAve(q[0].fY, q[1].fY) }; in generateQuadraticPoints()
96 uint32_t GrPathUtils::cubicPointCount(const SkPoint points[], SkScalar tol) { in cubicPointCount()
101 uint32_t GrPathUtils::generateCubicPoints(const SkPoint& p0, in generateCubicPoints()
102 const SkPoint& p1, in generateCubicPoints()
103 const SkPoint& p2, in generateCubicPoints()
104 const SkPoint& p3, in generateCubicPoints()
106 SkPoint** points, in generateCubicPoints()
115 SkPoint q[] = { in generateCubicPoints()
120 SkPoint r[] = { in generateCubicPoints()
124 SkPoint s = { SkScalarAve(r[0].fX, r[1].fX), SkScalarAve(r[0].fY, r[1].fY) }; in generateCubicPoints()
131 void GrPathUtils::QuadUVMatrix::set(const SkPoint qPts[3]) { in set()
221 void GrPathUtils::getConicKLM(const SkPoint p[3], const SkScalar weight, SkMatrix* out) { in getConicKLM()
258 bool is_point_within_cubic_tangents(const SkPoint& a, in is_point_within_cubic_tangents()
261 const SkPoint& d, in is_point_within_cubic_tangents()
263 const SkPoint p) { in is_point_within_cubic_tangents()
292 void convert_noninflect_cubic_to_quads(const SkPoint p[4], in convert_noninflect_cubic_to_quads()
294 SkTArray<SkPoint, true>* quads, in convert_noninflect_cubic_to_quads() argument
305 SkPoint* degQuad = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
324 SkPoint c0 = p[0] + ab; in convert_noninflect_cubic_to_quads()
325 SkPoint c1 = p[3] + dc; in convert_noninflect_cubic_to_quads()
329 SkPoint newC; in convert_noninflect_cubic_to_quads()
343 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
349 SkPoint choppedPts[7]; in convert_noninflect_cubic_to_quads()
357 void convert_noninflect_cubic_to_quads_with_constraint(const SkPoint p[4], in convert_noninflect_cubic_to_quads_with_constraint()
360 SkTArray<SkPoint, true>* quads, in convert_noninflect_cubic_to_quads_with_constraint() argument
370 SkPoint* degQuad = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint()
409 SkPoint b = p[0] + ab; in convert_noninflect_cubic_to_quads_with_constraint()
410 SkPoint c = p[3] + dc; in convert_noninflect_cubic_to_quads_with_constraint()
411 SkPoint mid = b + c; in convert_noninflect_cubic_to_quads_with_constraint()
416 SkPoint* qpts = quads->push_back_n(6); in convert_noninflect_cubic_to_quads_with_constraint()
424 SkPoint* qpts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint()
444 SkPoint cAvg = (c0 + c1) * 0.5f; in convert_noninflect_cubic_to_quads_with_constraint()
471 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint()
478 SkPoint choppedPts[7]; in convert_noninflect_cubic_to_quads_with_constraint()
487 void GrPathUtils::convertCubicToQuads(const SkPoint p[4], in convertCubicToQuads()
489 SkTArray<SkPoint, true>* quads) { in convertCubicToQuads() argument
496 SkPoint chopped[10]; in convertCubicToQuads()
502 SkPoint* cubic = chopped + 3*i; in convertCubicToQuads()
507 void GrPathUtils::convertCubicToQuadsConstrainToTangents(const SkPoint p[4], in convertCubicToQuadsConstrainToTangents()
510 SkTArray<SkPoint, true>* quads) { in convertCubicToQuadsConstrainToTangents() argument
517 SkPoint chopped[10]; in convertCubicToQuadsConstrainToTangents()
523 SkPoint* cubic = chopped + 3*i; in convertCubicToQuadsConstrainToTangents()