/third_party/skia/tests/ |
D | StrokerTest.cpp | 245 } while (SkPointPriv::DistanceToSqd(quad[0], quad[1]) < halfSquared); in DEF_TEST() 249 } while (SkPointPriv::DistanceToSqd(quad[0], quad[2]) < halfSquared in DEF_TEST() 250 || SkPointPriv::DistanceToSqd(quad[1], quad[2]) < halfSquared); in DEF_TEST() 297 } while (SkPointPriv::DistanceToSqd(cubic[0], cubic[1]) < halfSquared); in DEF_TEST() 301 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[2]) < halfSquared in DEF_TEST() 302 || SkPointPriv::DistanceToSqd(cubic[1], cubic[2]) < halfSquared); in DEF_TEST() 306 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[3]) < halfSquared in DEF_TEST() 307 || SkPointPriv::DistanceToSqd(cubic[1], cubic[3]) < halfSquared in DEF_TEST() 308 || SkPointPriv::DistanceToSqd(cubic[2], cubic[3]) < halfSquared); in DEF_TEST()
|
/third_party/flutter/skia/tests/ |
D | StrokerTest.cpp | 243 } while (SkPointPriv::DistanceToSqd(quad[0], quad[1]) < halfSquared); in DEF_TEST() 247 } while (SkPointPriv::DistanceToSqd(quad[0], quad[2]) < halfSquared in DEF_TEST() 248 || SkPointPriv::DistanceToSqd(quad[1], quad[2]) < halfSquared); in DEF_TEST() 295 } while (SkPointPriv::DistanceToSqd(cubic[0], cubic[1]) < halfSquared); in DEF_TEST() 299 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[2]) < halfSquared in DEF_TEST() 300 || SkPointPriv::DistanceToSqd(cubic[1], cubic[2]) < halfSquared); in DEF_TEST() 304 } while ( SkPointPriv::DistanceToSqd(cubic[0], cubic[3]) < halfSquared in DEF_TEST() 305 || SkPointPriv::DistanceToSqd(cubic[1], cubic[3]) < halfSquared in DEF_TEST() 306 || SkPointPriv::DistanceToSqd(cubic[2], cubic[3]) < halfSquared); in DEF_TEST()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 156 SkScalar maxD = SkPointPriv::DistanceToSqd(qPts[0], qPts[1]); in set() 158 SkScalar d = SkPointPriv::DistanceToSqd(qPts[1], qPts[2]); in set() 163 d = SkPointPriv::DistanceToSqd(qPts[2], qPts[0]); in set() 352 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads() 467 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads_with_constraint() 485 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint() 486 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
|
D | GrAAConvexTessellator.cpp | 59 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
|
/third_party/flutter/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 237 SkScalar maxD = SkPointPriv::DistanceToSqd(qPts[0], qPts[1]); in set() 239 SkScalar d = SkPointPriv::DistanceToSqd(qPts[1], qPts[2]); in set() 244 d = SkPointPriv::DistanceToSqd(qPts[2], qPts[0]); in set() 433 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads() 548 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads_with_constraint() 566 SkScalar d0Sqd = SkPointPriv::DistanceToSqd(c0, cAvg); in convert_noninflect_cubic_to_quads_with_constraint() 567 SkScalar d1Sqd = SkPointPriv::DistanceToSqd(c1, cAvg); in convert_noninflect_cubic_to_quads_with_constraint()
|
/third_party/skia/src/utils/ |
D | SkShadowTessellator.cpp | 146 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() 525 SkScalar minDistance = SkPointPriv::DistanceToSqd(p, umbraPolygon[fCurrUmbraIndex]); in getClosestUmbraIndex() 531 SkScalar distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex() 541 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex() 546 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
|
/third_party/flutter/skia/src/utils/ |
D | SkShadowTessellator.cpp | 149 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() 528 SkScalar minDistance = SkPointPriv::DistanceToSqd(p, umbraPolygon[fCurrUmbraIndex]); in getClosestUmbraIndex() 534 SkScalar distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex() 544 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex() 549 distance = SkPointPriv::DistanceToSqd(p, umbraPolygon[next]); in getClosestUmbraIndex()
|
/third_party/flutter/skia/src/core/ |
D | SkPoint.cpp | 151 return DistanceToSqd(b, pt); in DistanceToLineSegmentBetweenSqd()
|
D | SkPointPriv.h | 48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() function
|
D | SkGeometry.cpp | 879 return (SkPointPriv::DistanceToSqd(src[1], src[0]) + SkPointPriv::DistanceToSqd(src[2], src[1]) in calc_cubic_precision() 880 + SkPointPriv::DistanceToSqd(src[3], src[2])) * 1e-8f; in calc_cubic_precision()
|
D | SkStroke.cpp | 510 return SkPointPriv::DistanceToSqd(hit, pt); in pt_to_line() 512 return SkPointPriv::DistanceToSqd(pt, lineStart); in pt_to_line() 972 return SkPointPriv::DistanceToSqd(nearPt, farPt) <= limit * limit; in points_within_dist()
|
/third_party/skia/src/core/ |
D | SkPoint.cpp | 158 return DistanceToSqd(b, pt); in DistanceToLineSegmentBetweenSqd()
|
D | SkPointPriv.h | 48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() function
|
D | SkGeometry.cpp | 1078 return (SkPointPriv::DistanceToSqd(src[1], src[0]) + SkPointPriv::DistanceToSqd(src[2], src[1]) in calc_cubic_precision() 1079 + SkPointPriv::DistanceToSqd(src[3], src[2])) * 1e-8f; in calc_cubic_precision()
|
D | SkStroke.cpp | 543 return SkPointPriv::DistanceToSqd(hit, pt); in pt_to_line() 545 return SkPointPriv::DistanceToSqd(pt, lineStart); in pt_to_line() 1005 return SkPointPriv::DistanceToSqd(nearPt, farPt) <= limit * limit; in points_within_dist()
|
/third_party/skia/src/pathops/ |
D | SkOpSegment.cpp | 1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby() 1510 double seDistSq = std::max(SkPointPriv::DistanceToSqd(pt1, pt2) * 2, FLT_EPSILON * 2); in ptsDisjoint() 1511 return SkPointPriv::DistanceToSqd(midPt, pt1) > seDistSq || in ptsDisjoint() 1512 SkPointPriv::DistanceToSqd(midPt, pt2) > seDistSq; in ptsDisjoint()
|
/third_party/flutter/skia/src/pathops/ |
D | SkOpSegment.cpp | 1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby() 1510 double seDistSq = SkTMax(SkPointPriv::DistanceToSqd(pt1, pt2) * 2, FLT_EPSILON * 2); in ptsDisjoint() 1511 return SkPointPriv::DistanceToSqd(midPt, pt1) > seDistSq || in ptsDisjoint() 1512 SkPointPriv::DistanceToSqd(midPt, pt2) > seDistSq; in ptsDisjoint()
|
/third_party/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 359 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad() 360 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd || in add_quad()
|
/third_party/flutter/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 374 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || in add_quad_segment() 375 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd || in add_quad_segment()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrAAHairLinePathRenderer.cpp | 184 if (SkPointPriv::DistanceToSqd(p[0], p[1]) < gDegenerateToLineTolSqd || in is_degen_quad_or_conic() 185 SkPointPriv::DistanceToSqd(p[1], p[2]) < gDegenerateToLineTolSqd) { in is_degen_quad_or_conic()
|
D | GrAAConvexPathRenderer.cpp | 203 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
|
D | GrAAConvexTessellator.cpp | 58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt()
|
/third_party/skia/src/gpu/ops/ |
D | AAHairLinePathRenderer.cpp | 193 if (SkPointPriv::DistanceToSqd(p[0], p[1]) < gDegenerateToLineTolSqd || in is_degen_quad_or_conic() 194 SkPointPriv::DistanceToSqd(p[1], p[2]) < gDegenerateToLineTolSqd) { in is_degen_quad_or_conic()
|
D | AAConvexPathRenderer.cpp | 206 if (SkPointPriv::DistanceToSqd(pt, data->fFirstPoint) > kCloseSqd) { in update_degenerate_test()
|
/third_party/flutter/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 1086 SkScalar dSqd = sublevel > kMaxSubdivs ? 0 : SkPointPriv::DistanceToSqd(c0, c1); in convert_noninflect_cubic_to_quads()
|