Home
last modified time | relevance | path

Searched refs:SkScalarSquare (Results 1 – 17 of 17) sorted by relevance

/external/skqp/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp165 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
166 SkScalarSquare(y_dist)); in onFilterImage()
168 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()
170 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()
171 SkScalarSquare(y_dist)); in onFilterImage()
/external/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp197 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
198 SkScalarSquare(y_dist)); in onFilterImage()
201 weight = SkTPin(SkScalarSquare(dist), 0.0f, SK_Scalar1); in onFilterImage()
203 SkScalar sqDist = std::min(SkScalarSquare(x_dist), in onFilterImage()
204 SkScalarSquare(y_dist)); in onFilterImage()
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp19 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
/external/skqp/src/effects/
DSkEmbossMaskFilter.cpp18 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
/external/skqp/src/core/
DSkNormalMapSource.cpp202 (SkScalarSquare(transformed.fX) + SkScalarSquare(transformed.fY)) in fillScanLine()
203 / (1.0f - SkScalarSquare(tempNorm.fZ)); in fillScanLine()
DSkRRect.cpp286 SkScalar dist = SkScalarSquare(canonicalPt.fX) * SkScalarSquare(fRadii[index].fY) + in checkCornerContainment()
287 SkScalarSquare(canonicalPt.fY) * SkScalarSquare(fRadii[index].fX); in checkCornerContainment()
288 return dist <= SkScalarSquare(fRadii[index].fX * fRadii[index].fY); in checkCornerContainment()
DSkMatrix.cpp258 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
/external/skia/src/gpu/geometry/
DGrPathUtils.cpp424 detABSqd = SkScalarSquare(detABSqd); in convert_noninflect_cubic_to_quads_with_constraint()
426 detDCSqd = SkScalarSquare(detDCSqd); in convert_noninflect_cubic_to_quads_with_constraint()
524 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
545 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuadsConstrainToTangents()
/external/skia/src/core/
DSkRRect.cpp315 SkScalar dist = SkScalarSquare(canonicalPt.fX) * SkScalarSquare(fRadii[index].fY) + in checkCornerContainment()
316 SkScalarSquare(canonicalPt.fY) * SkScalarSquare(fRadii[index].fX); in checkCornerContainment()
317 return dist <= SkScalarSquare(fRadii[index].fX * fRadii[index].fY); in checkCornerContainment()
DSkGpuBlurUtils.cpp25 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()
26 const float twoSigmaSqrdY = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaY)); in fill_in_2D_gaussian_kernel()
DSkMatrix.cpp250 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
/external/skqp/src/gpu/
DGrPathUtils.cpp505 detABSqd = SkScalarSquare(detABSqd); in convert_noninflect_cubic_to_quads_with_constraint()
507 detDCSqd = SkScalarSquare(detDCSqd); in convert_noninflect_cubic_to_quads_with_constraint()
605 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
626 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuadsConstrainToTangents()
/external/skia/include/core/
DSkScalar.h106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
/external/skqp/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp240 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()
241 const float twoSigmaSqrdY = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaY)); in fill_in_2D_gaussian_kernel()
/external/skqp/include/core/
DSkScalar.h123 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp972 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
/external/skia/tools/fonts/
DTestSVGTypeface.cpp1113 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()