/third_party/skia/src/utils/ |
D | SkMatrix22.cpp | 27 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), b); in SkComputeGivensRotation() 33 SkScalar u = SkScalarCopySign(SkScalarSqrt(SK_Scalar1 + t*t), a); in SkComputeGivensRotation()
|
/third_party/skia/src/core/ |
D | SkDistanceFieldGen.cpp | 142 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); in edge_distance() 149 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha)); in edge_distance() 453 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image() 455 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
|
D | SkPointPriv.h | 37 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side)); 45 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
|
D | SkGeometry.cpp | 971 SkScalar theta = SkScalarACos(SkTPin(R / SkScalarSqrt(Q3), -1.0f, 1.0f)); in solve_cubic_poly() 972 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() 983 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly() 1265 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt() 1343 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value() 1404 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2() 1414 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2() 1703 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
|
D | SkPathBuilder.cpp | 444 SkScalar weight = SkScalarSqrt(SkDoubleToScalar(SK_ScalarHalf + cosh * 0.5)); in arcTo() 490 radiiScale = SkScalarSqrt(radiiScale); in arcTo() 505 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo() 543 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo()
|
D | SkImageFilterTypes.cpp | 56 scale = SkScalarSqrt(scale); in decomposeCTM()
|
D | SkMatrix.cpp | 1189 return SkScalarSqrt(d0 * d1); in mapRadius() 1508 SkScalar x = SkScalarHalf(SkScalarSqrt(aminusc * aminusc + 4 * bSqd)); in get_scale_factor() 1527 results[0] = SkScalarSqrt(results[0]); in get_scale_factor() 1535 results[1] = SkScalarSqrt(results[1]); in get_scale_factor() 1745 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cosQ*cosQ + sinQ*sinQ)); in SkDecomposeUpper2x2() 1780 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cos1*cos1 + sin1*sin1)); in SkDecomposeUpper2x2()
|
D | SkStrokerPriv.cpp | 185 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
|
D | SkPath.cpp | 1200 radiiScale = SkScalarSqrt(radiiScale); in arcTo() 1215 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo() 1253 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo() 1361 SkScalar weight = SkScalarSqrt(SkDoubleToScalar(SK_ScalarHalf + cosh * 0.5)); in arcTo()
|
/third_party/skia/gm/ |
D | conicpaths.cpp | 41 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw() 92 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
|
D | animatedimageblurs.cpp | 99 fDir.fY = SkScalarSqrt(1.0f - fDir.fX * fDir.fX); in init()
|
D | pictureimagegenerator.cpp | 69 (kVerticalSpacing + SkScalarSqrt(3) / 2) * accentSize; in draw_vector_logo()
|
D | addarc.cpp | 53 SkScalar speed = SkScalarSqrt(16 / r.width()) * 0.5f; in onDraw()
|
/third_party/skia/tests/ |
D | PathCoverageTest.cpp | 63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
|
/third_party/skia/src/effects/ |
D | SkEmbossMaskFilter.cpp | 20 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()
|
/third_party/skia/include/core/ |
D | SkScalar.h | 41 #define SkScalarSqrt(x) sk_float_sqrt(x) macro
|
D | SkM44.h | 41 SkScalar length() const { return SkScalarSqrt(this->lengthSquared()); } in length() 83 SkScalar length() const { return SkScalarSqrt(Dot(*this, *this)); } in length()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkMagnifierImageFilter.cpp | 250 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImage()
|
/third_party/skia/bench/ |
D | BulkRectBench.cpp | 196 int gridSize = SkScalarCeilToInt(SkScalarSqrt(kRectCount)); in onDelayedSetup()
|
/third_party/skia/samplecode/ |
D | Sample3D.cpp | 42 SkScalar z = SkScalarSqrt(1 - len2); in computeUnitV3()
|
D | SampleClip.cpp | 147 SkScalar len = SkScalarSqrt(fA*fA + fB*fB); in twoPts()
|
/third_party/skia/src/pdf/ |
D | SkPDFShader.cpp | 288 rasterScale *= SkScalarSqrt((float)kMaxBitmapArea / bitmapArea); in make_fallback_shader()
|
/third_party/skia/src/shaders/ |
D | SkPictureShader.cpp | 196 SkScalar clampScale = SkScalarSqrt(kMaxTileArea / tileArea); in Make()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGRenderContext.cpp | 34 return rsqrt2 * SkScalarSqrt(w * w + h * h); in length_size_for_type()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 491 SkScalar d0d1 = SkScalarSqrt(d0Sqd * d1Sqd); in convert_noninflect_cubic_to_quads_with_constraint()
|