Home
last modified time | relevance | path

Searched refs:cuspThreshold (Results 1 - 2 of 2) sorted by relevance

/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp604 // If -cuspThreshold <= discr_over_4 <= cuspThreshold, it means the two roots are within in findCubicConvex180Chops()
607 float cuspThreshold = a * (kEpsilon/2); in findCubicConvex180Chops() local
608 cuspThreshold *= cuspThreshold; in findCubicConvex180Chops()
610 if (discr_over_4 < -cuspThreshold) { in findCubicConvex180Chops()
633 *areCusps = (discr_over_4 <= cuspThreshold); in findCubicConvex180Chops()
/third_party/skia/src/gpu/tessellate/
H A DStrokeHardwareTessellator.cpp682 // If -cuspThreshold <= discr <= cuspThreshold, it means the two roots are within a distance of in cubic_has_cusp()
686 float cuspThreshold = (2*kEpsilon) * a; in cubic_has_cusp() local
687 cuspThreshold *= cuspThreshold; in cubic_has_cusp()
689 return fabsf(discr) <= cuspThreshold && in cubic_has_cusp()

Completed in 4 milliseconds