/external/skia/experimental/ |
D | SkSetPoly3To3.cpp | 22 op[0] += SkScalarMul(x0, x1); in computeOuterProduct() 23 op[1] += SkScalarMul(x0, y1); in computeOuterProduct() 24 op[2] += SkScalarMul(y0, x1); in computeOuterProduct() 25 op[3] += SkScalarMul(y0, y1); in computeOuterProduct() 30 return SkScalarMul(ax, bx) + SkScalarMul(ay, by); in dot() 42 SkScalar det = SkScalarMul(srcOP[0], srcOP[3]) - SkScalarMul(srcOP[1], srcOP[2]); in SkSetPoly3To3() 54 const SkScalar srcOP0 = SkScalarMul( srcOP[3], invDet); in SkSetPoly3To3() 55 const SkScalar srcOP1 = SkScalarMul(-srcOP[1], invDet); in SkSetPoly3To3() 56 const SkScalar srcOP2 = SkScalarMul(-srcOP[2], invDet); in SkSetPoly3To3() 57 const SkScalar srcOP3 = SkScalarMul( srcOP[0], invDet); in SkSetPoly3To3()
|
D | SkSetPoly3To3_A.cpp | 35 op[0] += SkScalarMul(x0, x1); in computeOuterProduct() 36 op[1] += SkScalarMul(x0, y1); in computeOuterProduct() 37 op[2] += SkScalarMul(y0, x1); in computeOuterProduct() 38 op[3] += SkScalarMul(y0, y1); in computeOuterProduct()
|
/external/skia/samplecode/ |
D | SamplePatch.cpp | 91 SkScalar uv = SkScalarMul(u, v); in eval_sheet() 92 SkScalar Uv = SkScalarMul(SK_Scalar1 - u, v); in eval_sheet() 93 SkScalar uV = SkScalarMul(u, SK_Scalar1 - v); in eval_sheet() 94 SkScalar UV = SkScalarMul(SK_Scalar1 - u, SK_Scalar1 - v); in eval_sheet() 96 SkScalar x0 = SkScalarMul(UV, edge[TL].fX) + SkScalarMul(uV, edge[TR].fX) + in eval_sheet() 97 SkScalarMul(Uv, edge[BL].fX) + SkScalarMul(uv, edge[BR].fX); in eval_sheet() 98 SkScalar y0 = SkScalarMul(UV, edge[TL].fY) + SkScalarMul(uV, edge[TR].fY) + in eval_sheet() 99 SkScalarMul(Uv, edge[BL].fY) + SkScalarMul(uv, edge[BR].fY); in eval_sheet() 101 SkScalar x = SkScalarMul(SK_Scalar1 - v, edge[TL+iu].fX) + in eval_sheet() 102 SkScalarMul(u, edge[TR+iv].fX) + in eval_sheet() [all …]
|
/external/skia/src/fonts/ |
D | SkGScalerContext.cpp | 142 metrics->fTop = SkScalarMul(metrics->fTop, scale); in generateFontMetrics() 143 metrics->fAscent = SkScalarMul(metrics->fAscent, scale); in generateFontMetrics() 144 metrics->fDescent = SkScalarMul(metrics->fDescent, scale); in generateFontMetrics() 145 metrics->fBottom = SkScalarMul(metrics->fBottom, scale); in generateFontMetrics() 146 metrics->fLeading = SkScalarMul(metrics->fLeading, scale); in generateFontMetrics() 147 metrics->fAvgCharWidth = SkScalarMul(metrics->fAvgCharWidth, scale); in generateFontMetrics() 148 metrics->fXMin = SkScalarMul(metrics->fXMin, scale); in generateFontMetrics() 149 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); in generateFontMetrics() 150 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); in generateFontMetrics()
|
D | SkTestScalerContext.cpp | 267 metrics->fTop = SkScalarMul(metrics->fTop, scale); in generateFontMetrics() 268 metrics->fAscent = SkScalarMul(metrics->fAscent, scale); in generateFontMetrics() 269 metrics->fDescent = SkScalarMul(metrics->fDescent, scale); in generateFontMetrics() 270 metrics->fBottom = SkScalarMul(metrics->fBottom, scale); in generateFontMetrics() 271 metrics->fLeading = SkScalarMul(metrics->fLeading, scale); in generateFontMetrics() 272 metrics->fAvgCharWidth = SkScalarMul(metrics->fAvgCharWidth, scale); in generateFontMetrics() 273 metrics->fXMin = SkScalarMul(metrics->fXMin, scale); in generateFontMetrics() 274 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); in generateFontMetrics() 275 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); in generateFontMetrics()
|
/external/skia/bench/ |
D | FSRectBench.cpp | 32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
|
/external/skia/src/animator/ |
D | SkDrawColor.cpp | 42 hue = SkScalarMul(green - blue, part60); in RGB_to_HSV() 47 hue = 120 * SK_Scalar1 + SkScalarMul(blue - red, part60); in RGB_to_HSV() 49 hue = 240 * SK_Scalar1 + SkScalarMul(red - green, part60); in RGB_to_HSV() 74 SkScalar p = SkScalarMul(value , SK_Scalar1 - saturation); in HSV_to_RGB() 75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); in HSV_to_RGB() 76 SkScalar t = SkScalarMul(value, SK_Scalar1 - in HSV_to_RGB() 77 SkScalarMul(saturation, SK_Scalar1 - fraction)); in HSV_to_RGB()
|
/external/skia/src/core/ |
D | SkRRect.cpp | 36 xRad = SkScalarMul(xRad, scale); in setRectXY() 37 yRad = SkScalarMul(yRad, scale); in setRectXY() 82 leftRad = SkScalarMul(leftRad, scale); in setNinePatch() 83 topRad = SkScalarMul(topRad, scale); in setNinePatch() 84 rightRad = SkScalarMul(rightRad, scale); in setNinePatch() 85 bottomRad = SkScalarMul(bottomRad, scale); in setNinePatch() 249 SkScalar dist = SkScalarMul(SkScalarSquare(canonicalPt.fX), SkScalarSquare(fRadii[index].fY)) + in checkCornerContainment() 250 SkScalarMul(SkScalarSquare(canonicalPt.fY), SkScalarSquare(fRadii[index].fX)); in checkCornerContainment() 251 return dist <= SkScalarSquare(SkScalarMul(fRadii[index].fX, fRadii[index].fY)); in checkCornerContainment() 407 dst->fRadii[i].fX = SkScalarMul(fRadii[i].fX, xScale); in transform() [all …]
|
D | SkTextMapStateProc.h | 29 fOffset.set(SkScalarMul(offset.x(), fMatrix.getScaleX()) + fMatrix.getTranslateX(), in SkTextMapStateProc() 30 SkScalarMul(offset.y(), fMatrix.getScaleY()) + fMatrix.getTranslateY()); in SkTextMapStateProc() 64 loc->set(SkScalarMul(fScaleX, *pos) + fOffset.x(), fOffset.y()); in operator()
|
D | SkPaint.cpp | 878 width = SkScalarMul(width, scale); in measureText() 880 bounds->fLeft = SkScalarMul(bounds->fLeft, scale); in measureText() 881 bounds->fTop = SkScalarMul(bounds->fTop, scale); in measureText() 882 bounds->fRight = SkScalarMul(bounds->fRight, scale); in measureText() 883 bounds->fBottom = SkScalarMul(bounds->fBottom, scale); in measureText() 961 scalarWidth = SkScalarMul(scalarWidth, scale); in breakText() 1001 metrics->fTop = SkScalarMul(metrics->fTop, scale); in getFontMetrics() 1002 metrics->fAscent = SkScalarMul(metrics->fAscent, scale); in getFontMetrics() 1003 metrics->fDescent = SkScalarMul(metrics->fDescent, scale); in getFontMetrics() 1004 metrics->fBottom = SkScalarMul(metrics->fBottom, scale); in getFontMetrics() [all …]
|
D | SkPictureShader.cpp | 183 SkScalar tileArea = SkScalarMul(scaledSize.width(), scaledSize.height()); in refBitmapShader() 186 scaledSize.set(SkScalarMul(scaledSize.width(), clampScale), in refBitmapShader() 187 SkScalarMul(scaledSize.height(), clampScale)); in refBitmapShader() 194 scaledSize.set(SkScalarFloorToScalar(SkScalarMul(scaledSize.width(), downScale)), in refBitmapShader() 195 SkScalarFloorToScalar(SkScalarMul(scaledSize.height(), downScale))); in refBitmapShader()
|
D | SkStrokerPriv.cpp | 58 return SkScalarMul(before.fX, after.fY) - SkScalarMul(before.fY, after.fX) > 0; in is_clockwise() 187 mid.set(SkScalarMul(before.fX + after.fX, radius), in MiterJoiner() 188 SkScalarMul(before.fY + after.fY, radius)); in MiterJoiner()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 86 SkScalar cx = SkScalarMul(fU.fY, fV.fZ) - SkScalarMul(fU.fZ, fV.fY); in dotWith() 87 SkScalar cy = SkScalarMul(fU.fZ, fV.fX) - SkScalarMul(fU.fX, fV.fY); in dotWith() 88 SkScalar cz = SkScalarMul(fU.fX, fV.fY) - SkScalarMul(fU.fY, fV.fX); in dotWith() 90 return SkScalarMul(cx, dx) + SkScalarMul(cy, dy) + SkScalarMul(cz, dz); in dotWith()
|
D | SkDashPath.cpp | 86 radius = SkScalarMul(radius, rec.getMiter()); in outset_for_stroke() 200 SkScalar x0 = fPts[0].fX + SkScalarMul(fTangent.fX, d0); in addSegment() 201 SkScalar x1 = fPts[0].fX + SkScalarMul(fTangent.fX, d1); in addSegment() 202 SkScalar y0 = fPts[0].fY + SkScalarMul(fTangent.fY, d0); in addSegment() 203 SkScalar y1 = fPts[0].fY + SkScalarMul(fTangent.fY, d1); in addSegment()
|
D | SkLayer.cpp | 144 SkScalar tx = SkScalarMul(m_anchorPoint.fX, m_size.width()); in getLocalTransform() 145 SkScalar ty = SkScalarMul(m_anchorPoint.fY, m_size.height()); in getLocalTransform() 188 opacity = SkScalarMul(opacity, this->getOpacity()); in draw()
|
/external/skia/src/effects/ |
D | SkDashPathEffect.cpp | 51 radius = SkScalarMul(radius, rec.getMiter()); in outset_for_stroke() 277 … SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength)); in asPoints() 278 … SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength)); in asPoints() 310 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance); in asPoints() 311 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance); in asPoints() 328 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance + SkScalarHalf(temp)); in asPoints() 329 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, distance + SkScalarHalf(temp)); in asPoints()
|
D | SkMatrixConvolutionImageFilter.cpp | 183 sumA += SkScalarMul(SkIntToScalar(SkGetPackedA32(s)), k); in filterPixels() 185 sumR += SkScalarMul(SkIntToScalar(SkGetPackedR32(s)), k); in filterPixels() 186 sumG += SkScalarMul(SkIntToScalar(SkGetPackedG32(s)), k); in filterPixels() 187 sumB += SkScalarMul(SkIntToScalar(SkGetPackedB32(s)), k); in filterPixels() 191 ? SkClampMax(SkScalarFloorToInt(SkScalarMul(sumA, fGain) + fBias), 255) in filterPixels() 193 int r = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumR, fGain) + fBias), a); in filterPixels() 194 int g = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumG, fGain) + fBias), a); in filterPixels() 195 int b = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumB, fGain) + fBias), a); in filterPixels()
|
D | SkDropShadowImageFilter.cpp | 111 shadowBounds.outset(SkScalarMul(fSigmaX, SkIntToScalar(3)), in computeFastBounds() 112 SkScalarMul(fSigmaY, SkIntToScalar(3))); in computeFastBounds() 132 dst->outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), in onFilterNodeBounds() 133 SkScalarCeilToInt(SkScalarMul(sigma.y(), SkIntToScalar(3)))); in onFilterNodeBounds()
|
D | SkArithmeticMode.cpp | 77 SkScalar result = SkScalarMul(k1, src * dst) + in arith() 78 SkScalarMul(k2, src) + in arith() 79 SkScalarMul(k3, dst) + in arith()
|
D | SkBlurImageFilter.cpp | 189 dst->outset(SkScalarMul(fSigma.width(), SkIntToScalar(3)), in computeFastBounds() 190 SkScalarMul(fSigma.height(), SkIntToScalar(3))); in computeFastBounds() 197 dst->outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), in onFilterNodeBounds() 198 SkScalarCeilToInt(SkScalarMul(sigma.y(), SkIntToScalar(3)))); in onFilterNodeBounds()
|
D | SkDiscretePathEffect.cpp | 102 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath() 108 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointConicalGradient_gpu.cpp | 56 rot.setSinCos(-SkScalarMul(invDiffLen, diff.fY), in set_matrix_edge_conical() 57 SkScalarMul(invDiffLen, diff.fX)); in set_matrix_edge_conical() 118 SkScalar r0dr = SkScalarMul(fRadius0, fDiffRadius); in Edge2PtConicalEffect() 119 bMatrix[SkMatrix::kMScaleX] = -2 * (SkScalarMul(fCenterX1, bMatrix[SkMatrix::kMScaleX]) + in Edge2PtConicalEffect() 120 SkScalarMul(r0dr, bMatrix[SkMatrix::kMPersp0])); in Edge2PtConicalEffect() 121 bMatrix[SkMatrix::kMSkewX] = -2 * (SkScalarMul(fCenterX1, bMatrix[SkMatrix::kMSkewX]) + in Edge2PtConicalEffect() 122 SkScalarMul(r0dr, bMatrix[SkMatrix::kMPersp1])); in Edge2PtConicalEffect() 123 bMatrix[SkMatrix::kMTransX] = -2 * (SkScalarMul(fCenterX1, bMatrix[SkMatrix::kMTransX]) + in Edge2PtConicalEffect() 124 SkScalarMul(r0dr, bMatrix[SkMatrix::kMPersp2])); in Edge2PtConicalEffect() 299 SkScalarToFloat(SkScalarMul(radius0, radius0)), in onSetData() [all …]
|
/external/skia/src/gpu/batches/ |
D | GrAAHairLinePathRenderer.cpp | 176 SkScalarMul(gDegenerateToLineTol, gDegenerateToLineTol); in is_degen_quad_or_conic() 213 if (dsqd <= SkScalarMul(gSubdivTol, gSubdivTol)) { in num_quad_subdivs() 432 SkScalar wInv = SkScalarMul(normA.fX, normB.fY) - in intersect_lines() 433 SkScalarMul(normA.fY, normB.fX); in intersect_lines() 436 result->fX = SkScalarMul(normA.fY, lineBW) - SkScalarMul(lineAW, normB.fY); in intersect_lines() 437 result->fX = SkScalarMul(result->fX, wInv); in intersect_lines() 439 result->fY = SkScalarMul(lineAW, normB.fX) - SkScalarMul(normA.fX, lineBW); in intersect_lines() 440 result->fY = SkScalarMul(result->fY, wInv); in intersect_lines()
|
/external/skia/src/gpu/ |
D | GrPathUtils.cpp | 446 if (SkScalarMul(detABSqd, invDALengthSqd) < toleranceSqd && in convert_noninflect_cubic_to_quads() 447 SkScalarMul(detDCSqd, invDALengthSqd) < toleranceSqd) { in convert_noninflect_cubic_to_quads() 504 cAvg.fX = SkScalarMul(ab.fY, z1) - SkScalarMul(z0, dc.fY); in convert_noninflect_cubic_to_quads() 505 cAvg.fY = SkScalarMul(z0, dc.fX) - SkScalarMul(ab.fX, z1); in convert_noninflect_cubic_to_quads() 506 SkScalar z = SkScalarMul(ab.fX, dc.fY) - SkScalarMul(ab.fY, dc.fX); in convert_noninflect_cubic_to_quads() 517 SkScalar d0d1 = SkScalarSqrt(SkScalarMul(d0Sqd, d1Sqd)); in convert_noninflect_cubic_to_quads()
|
/external/skia/gm/ |
D | beziereffects.cpp | 170 SkScalar x = SkScalarMul(col, w); in onDraw() 171 SkScalar y = SkScalarMul(row, h); in onDraw() 314 SkScalar x = SkScalarMul(col, w); in onDraw() 315 SkScalar y = SkScalarMul(row, h); in onDraw() 551 SkScalar x = SkScalarMul(col, w); in onDraw() 552 SkScalar y = SkScalarMul(row, h); in onDraw()
|