Home
last modified time | relevance | path

Searched refs:toleranceSqd (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/src/gpu/geometry/
DGrPathUtils.cpp318 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads() argument
353 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads()
377 choppedPts + 0, toleranceSqd, quads, sublevel + 1, preserveFirstTangent, false); in convert_noninflect_cubic_to_quads()
379 choppedPts + 3, toleranceSqd, quads, sublevel + 1, false, preserveLastTangent); in convert_noninflect_cubic_to_quads()
383 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads_with_constraint() argument
427 if (detABSqd * invDALengthSqd < toleranceSqd && in convert_noninflect_cubic_to_quads_with_constraint()
428 detDCSqd * invDALengthSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads_with_constraint()
468 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads_with_constraint()
492 subdivide = 2 * d0d1 + d0Sqd + d1Sqd > toleranceSqd; in convert_noninflect_cubic_to_quads_with_constraint()
506 choppedPts + 0, toleranceSqd, dir, quads, sublevel + 1); in convert_noninflect_cubic_to_quads_with_constraint()
[all …]
DGrTriangulator.cpp475 void GrTriangulator::appendQuadraticToContour(const SkPoint pts[3], SkScalar toleranceSqd, in appendQuadraticToContour() argument
488 if (quad_error_at(pts, t, u) < toleranceSqd) { in appendQuadraticToContour()
527 SkScalar toleranceSqd = tolerance * tolerance; in pathToContours() local
546 if (toleranceSqd == 0) { in pathToContours()
551 const SkPoint* quadPts = converter.computeQuads(pts, weight, toleranceSqd); in pathToContours()
553 this->appendQuadraticToContour(quadPts, toleranceSqd, contour); in pathToContours()
570 if (toleranceSqd == 0) { in pathToContours()
574 this->appendQuadraticToContour(pts, toleranceSqd, contour); in pathToContours()
579 if (toleranceSqd == 0) { in pathToContours()
584 this->generateCubicPoints(pts[0], pts[1], pts[2], pts[3], toleranceSqd, contour, in pathToContours()
DGrTriangulator.h138 void appendQuadraticToContour(const SkPoint[3], SkScalar toleranceSqd,
/third_party/flutter/skia/src/gpu/geometry/
DGrPathUtils.cpp399 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads() argument
434 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads()
458 choppedPts + 0, toleranceSqd, quads, sublevel + 1, preserveFirstTangent, false); in convert_noninflect_cubic_to_quads()
460 choppedPts + 3, toleranceSqd, quads, sublevel + 1, false, preserveLastTangent); in convert_noninflect_cubic_to_quads()
464 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads_with_constraint() argument
508 if (detABSqd * invDALengthSqd < toleranceSqd && in convert_noninflect_cubic_to_quads_with_constraint()
509 detDCSqd * invDALengthSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads_with_constraint()
549 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads_with_constraint()
573 subdivide = 2 * d0d1 + d0Sqd + d1Sqd > toleranceSqd; in convert_noninflect_cubic_to_quads_with_constraint()
587 choppedPts + 0, toleranceSqd, dir, quads, sublevel + 1); in convert_noninflect_cubic_to_quads_with_constraint()
[all …]
/third_party/flutter/skia/tools/fonts/
DTestSVGTypeface.cpp1051 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads() argument
1087 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads()
1100 convert_noninflect_cubic_to_quads(choppedPts + 0, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
1101 convert_noninflect_cubic_to_quads(choppedPts + 3, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
/third_party/skia/tools/fonts/
DTestSVGTypeface.cpp1054 SkScalar toleranceSqd, in convert_noninflect_cubic_to_quads() argument
1090 if (dSqd < toleranceSqd) { in convert_noninflect_cubic_to_quads()
1103 convert_noninflect_cubic_to_quads(choppedPts + 0, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
1104 convert_noninflect_cubic_to_quads(choppedPts + 3, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
/third_party/flutter/skia/src/gpu/
DGrTessellator.cpp748 void append_quadratic_to_contour(const SkPoint pts[3], SkScalar toleranceSqd, VertexList* contour, in append_quadratic_to_contour() argument
761 if (quad_error_at(pts, t, u) < toleranceSqd) { in append_quadratic_to_contour()
805 SkScalar toleranceSqd = tolerance * tolerance; in path_to_contours() local
825 const SkPoint* quadPts = converter.computeQuads(pts, weight, toleranceSqd); in path_to_contours()
827 append_quadratic_to_contour(quadPts, toleranceSqd, contour, alloc); in path_to_contours()
844 append_quadratic_to_contour(pts, toleranceSqd, contour, alloc); in path_to_contours()
850 generate_cubic_points(pts[0], pts[1], pts[2], pts[3], toleranceSqd, contour, in path_to_contours()