/external/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()
|
D | SkCamera.cpp | 36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize()
|
/external/skia/src/gpu/ |
D | GrPathUtils.cpp | 53 SkScalar divSqrt = SkScalarSqrt(d / tol); in quadraticPointCount() 105 d = SkScalarSqrt(d); in cubicPointCount() 109 SkScalar divSqrt = SkScalarSqrt(d / tol); in cubicPointCount() 113 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in cubicPointCount() 517 SkScalar d0d1 = SkScalarSqrt(SkScalarMul(d0Sqd, d1Sqd)); in convert_noninflect_cubic_to_quads() 602 SkScalar tempSqrt = SkScalarSqrt(9.f * d[1] * d[1] - 12.f * d[0] * d[2]); in set_serp_klm() 637 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in set_loop_klm() 734 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in chopCubicAtLoopIntersection()
|
D | GrOvalRenderer.cpp | 1295 SkScalar geoDx = SK_ScalarHalf / SkScalarSqrt(a*a + c*c); in create_diellipse_batch() 1296 SkScalar geoDy = SK_ScalarHalf / SkScalarSqrt(b*b + d*d); in create_diellipse_batch()
|
/external/skia/gm/ |
D | conicpaths.cpp | 26 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw() 77 const SkScalar w = SkScalarSqrt(2)/2; in onOnceBeforeDraw()
|
D | beziereffects.cpp | 147 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumCubics*3))); in onDraw() 290 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumConics*3))); in onDraw() 528 int numCols = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(kNumQuads*3))); in onDraw()
|
D | addarc.cpp | 42 SkScalar speed = SkScalarSqrt(16 / r.width()) * 0.5f; in onDraw()
|
D | pictureimagegenerator.cpp | 45 (kVerticalSpacing + SkScalarSqrt(3) / 2) * accentSize; in draw_vector_logo()
|
/external/skia/src/core/ |
D | SkDistanceFieldGen.cpp | 134 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); in edge_distance() 141 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha)); in edge_distance() 446 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image() 448 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
|
D | SkGeometry.cpp | 90 R = SkScalarSqrt(R); in SkFindUnitQuadRoots() 746 SkScalar theta = SkScalarACos(R / SkScalarSqrt(Q3)); in solve_cubic_poly() 747 SkScalar neg2RootQ = -2 * SkScalarSqrt(Q); in solve_cubic_poly() 770 SkScalar A = SkScalarAbs(R) + SkScalarSqrt(R2MinusQ3); in solve_cubic_poly() 1000 SkScalar root = SkScalarSqrt(tmp2[1].fZ); in chopAt() 1073 return SkScalarSqrt(SK_ScalarHalf + w * SK_ScalarHalf); in subdivide_w_value() 1127 SkScalar error = SkScalarSqrt(x * x + y * y); in computeQuadPOW2() 1137 SkScalar err = SkScalarSqrt(x * x + y * y); in computeQuadPOW2() 1259 w = SkScalarSqrt((w1 * w1) / (w0 * w2)); in TransformW() 1328 const SkScalar cosThetaOver2 = SkScalarSqrt((1 + dot) / 2); in BuildUnitArc()
|
D | SkRTree.cpp | 77 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / aspectRatio)); in CountNodes() 125 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / fAspectRatio)); in bulkLoad()
|
D | SkPictureShader.cpp | 175 scale.set(SkScalarSqrt(m.getScaleX() * m.getScaleX() + m.getSkewX() * m.getSkewX()), in refBitmapShader() 176 SkScalarSqrt(m.getScaleY() * m.getScaleY() + m.getSkewY() * m.getSkewY())); in refBitmapShader() 185 SkScalar clampScale = SkScalarSqrt(kMaxTileArea / tileArea); in refBitmapShader()
|
D | SkPathMeasure.cpp | 126 SkScalar Sabc = 2 * SkScalarSqrt(A + B + C); in compute_quad_len() 127 SkScalar A_2 = SkScalarSqrt(A); in compute_quad_len() 129 SkScalar C_2 = 2 * SkScalarSqrt(C); in compute_quad_len()
|
D | SkMatrix.cpp | 1053 return SkScalarSqrt(d0 * d1); in mapRadius() 1466 SkScalar x = SkScalarHalf(SkScalarSqrt(aminusc * aminusc + 4 * bSqd)); in get_scale_factor() 1480 results[0] = SkScalarSqrt(results[0]); in get_scale_factor() 1486 results[1] = SkScalarSqrt(results[1]); in get_scale_factor() 1704 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cosQ*cosQ + sinQ*sinQ)); in SkDecomposeUpper2x2() 1739 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cos1*cos1 + sin1*sin1)); in SkDecomposeUpper2x2()
|
D | SkStrokerPriv.cpp | 200 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
|
D | SkMipMap.cpp | 381 const SkScalar scale = SkScalarSqrt(scaleSize.width() * scaleSize.height()); in extractLevel()
|
D | SkPath.cpp | 1350 radiiScale = SkScalarSqrt(radiiScale); in arcTo() 1365 SkScalar scaleFactor = SkScalarSqrt(scaleFactorSquared); in arcTo() 1393 SkScalar w = SkScalarSqrt(SK_ScalarHalf + SkScalarCos(thetaWidth) * SK_ScalarHalf); in arcTo() 1466 SkScalar weight = SkScalarSqrt(SK_ScalarHalf + cosh * SK_ScalarHalf); in arcTo()
|
/external/skia/include/core/ |
D | SkScalar.h | 50 #define SkScalarSqrt(x) sk_float_sqrt(x) macro 93 #define SkScalarSqrt(x) sqrt(x) macro
|
D | SkPoint.h | 509 return SkScalarSqrt(this->distanceToLineBetweenSqd(a, b, side)); 523 return SkScalarSqrt(this->distanceToLineSegmentBetweenSqd(a, b)); in distanceToLineSegmentBetween()
|
/external/skia/tests/ |
D | PathCoverageTest.cpp | 63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); in compute_pointCount()
|
/external/skia/src/effects/ |
D | SkEmbossMaskFilter.cpp | 61 mag = SkScalarSqrt(mag); in normalize()
|
D | SkMagnifierImageFilter.cpp | 341 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + in onFilterImageDeprecated()
|
/external/skia/src/animator/ |
D | SkDisplayMath.cpp | 204 scalarResult = SkScalarSqrt(input); in executeFunction()
|
D | SkAnimateActive.cpp | 318 SkScalar originalDistance = SkScalarSqrt(originalSum); in pickUp() 319 SkScalar workingDistance = SkScalarSqrt(workingSum); in pickUp()
|
/external/skia/src/pathops/ |
D | SkPathOpsCubic.cpp | 238 SkScalar tempSqrt = SkScalarSqrt(4.f * d[0] * d[2] - 3.f * d[1] * d[1]); in ComplexBreak()
|