Home
last modified time | relevance | path

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

/external/skia/src/effects/
DSkEmbossMaskFilter.cpp60 SkScalar mag = SkScalarSquare(v[0]) + SkScalarSquare(v[1]) + SkScalarSquare(v[2]); in normalize()
DSkMagnifierImageFilter.cpp361 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
362 SkScalarSquare(y_dist)); in onFilterImage()
364 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1); in onFilterImage()
366 SkScalar sqDist = SkMinScalar(SkScalarSquare(x_dist), in onFilterImage()
367 SkScalarSquare(y_dist)); in onFilterImage()
DSkPerlinNoiseShader.cpp50 return SkScalarMul(SkScalarSquare(t), SK_Scalar3 - 2 * t); in smoothCurve()
/external/skia/src/core/
DSkRRect.cpp266 SkScalar dist = SkScalarMul(SkScalarSquare(canonicalPt.fX), SkScalarSquare(fRadii[index].fY)) + in checkCornerContainment()
267 SkScalarMul(SkScalarSquare(canonicalPt.fY), SkScalarSquare(fRadii[index].fX)); in checkCornerContainment()
268 return dist <= SkScalarSquare(SkScalarMul(fRadii[index].fX, fRadii[index].fY)); in checkCornerContainment()
DSkMatrix.cpp254 return SkScalarNearlyZero(vec[0].dot(vec[1]), SkScalarSquare(tol)); in preservesRightAngles()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp206 float sigmaXDenom = 1.0f / (2.0f * SkScalarToFloat(SkScalarSquare(sigmaX))); in CreateGaussian()
207 float sigmaYDenom = 1.0f / (2.0f * SkScalarToFloat(SkScalarSquare(sigmaY))); in CreateGaussian()
/external/skia/src/gpu/
DGrPathUtils.cpp443 detABSqd = SkScalarSquare(detABSqd); in convert_noninflect_cubic_to_quads()
445 detDCSqd = SkScalarSquare(detDCSqd); in convert_noninflect_cubic_to_quads()
556 const SkScalar tolSqd = SkScalarSquare(SkScalarMul(tolScale, kTolerance)); in convertCubicToQuads()
/external/skia/include/core/
DSkScalar.h183 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare() function