Home
last modified time | relevance | path

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

/third_party/flutter/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp191 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
192 SkScalarSquare(y_dist)); in onFilterImage()
194 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()
196 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()
197 SkScalarSquare(y_dist)); in onFilterImage()
/third_party/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp250 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
251 SkScalarSquare(y_dist)); in onFilterImage()
254 weight = SkTPin(SkScalarSquare(dist), 0.0f, SK_Scalar1); in onFilterImage()
256 SkScalar sqDist = std::min(SkScalarSquare(x_dist), in onFilterImage()
257 SkScalarSquare(y_dist)); in onFilterImage()
/third_party/skia/src/effects/
DSkEmbossMaskFilter.cpp19 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
/third_party/flutter/skia/src/effects/
DSkEmbossMaskFilter.cpp18 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3()
/third_party/flutter/skia/src/core/
DSkNormalMapSource.cpp207 (SkScalarSquare(transformed.fX) + SkScalarSquare(transformed.fY)) in fillScanLine()
208 / (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.cpp254 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
/third_party/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.cpp30 const float twoSigmaSqrdX = 2.0f * SkScalarToFloat(SkScalarSquare(sigmaX)); in fill_in_2D_gaussian_kernel()
31 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()
/third_party/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()
/third_party/flutter/skia/src/gpu/geometry/
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()
/third_party/flutter/skia/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()
/third_party/skia/include/core/
DSkScalar.h106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
/third_party/flutter/skia/include/core/
DSkScalar.h116 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function
/third_party/skia/tools/fonts/
DTestSVGTypeface.cpp1114 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()
/third_party/flutter/skia/tools/fonts/
DTestSVGTypeface.cpp1111 const SkScalar tolSqd = SkScalarSquare(tolScale); in convertCubicToQuads()