Home
last modified time | relevance | path

Searched refs:srcTol (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/gpu/geometry/
DGrPathUtils.cpp18 static float tolerance_to_wangs_precision(float srcTol) { in tolerance_to_wangs_precision() argument
20 SkASSERT(srcTol >= kMinCurveTol); in tolerance_to_wangs_precision()
25 return 1.f / srcTol; in tolerance_to_wangs_precision()
52 SkScalar srcTol = 0; in scaleToleranceToSrc() local
56 srcTol = std::max(pathBounds.width(), pathBounds.height()); in scaleToleranceToSrc()
58 srcTol = devTol / stretch; in scaleToleranceToSrc()
60 if (srcTol < kMinCurveTol) { in scaleToleranceToSrc()
61 srcTol = kMinCurveTol; in scaleToleranceToSrc()
63 return srcTol; in scaleToleranceToSrc()
/external/skqp/src/gpu/
DGrPathUtils.cpp34 SkScalar srcTol = 0; in scaleToleranceToSrc() local
38 srcTol = SkTMax(pathBounds.width(), pathBounds.height()); in scaleToleranceToSrc()
40 srcTol = devTol / stretch; in scaleToleranceToSrc()
42 if (srcTol < gMinCurveTol) { in scaleToleranceToSrc()
43 srcTol = gMinCurveTol; in scaleToleranceToSrc()
45 return srcTol; in scaleToleranceToSrc()