/external/skia/samplecode/ |
D | SamplePatch.cpp | 94 SkScalar uv = SkScalarMul(u, v); in eval_sheet() 95 SkScalar Uv = SkScalarMul(SK_Scalar1 - u, v); in eval_sheet() 96 SkScalar uV = SkScalarMul(u, SK_Scalar1 - v); in eval_sheet() 97 SkScalar UV = SkScalarMul(SK_Scalar1 - u, SK_Scalar1 - v); in eval_sheet() 99 SkScalar x0 = SkScalarMul(UV, edge[TL].fX) + SkScalarMul(uV, edge[TR].fX) + in eval_sheet() 100 SkScalarMul(Uv, edge[BL].fX) + SkScalarMul(uv, edge[BR].fX); in eval_sheet() 101 SkScalar y0 = SkScalarMul(UV, edge[TL].fY) + SkScalarMul(uV, edge[TR].fY) + in eval_sheet() 102 SkScalarMul(Uv, edge[BL].fY) + SkScalarMul(uv, edge[BR].fY); in eval_sheet() 104 SkScalar x = SkScalarMul(SK_Scalar1 - v, edge[TL+iu].fX) + in eval_sheet() 105 SkScalarMul(u, edge[TR+iv].fX) + in eval_sheet() [all …]
|
D | SamplePathFill.cpp | 79 path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r)); in make_star()
|
/external/skia/src/utils/ |
D | SkColorMatrix.cpp | 78 result[index++] = SkScalarMul(a[j + 0], b[i + 0]) + in setConcat() 79 SkScalarMul(a[j + 1], b[i + 5]) + in setConcat() 80 SkScalarMul(a[j + 2], b[i + 10]) + in setConcat() 81 SkScalarMul(a[j + 3], b[i + 15]); in setConcat() 83 result[index++] = SkScalarMul(a[j + 0], b[4]) + in setConcat() 84 SkScalarMul(a[j + 1], b[9]) + in setConcat() 85 SkScalarMul(a[j + 2], b[14]) + in setConcat() 86 SkScalarMul(a[j + 3], b[19]) + in setConcat() 110 const SkScalar R = SkScalarMul(kHueR, SK_Scalar1 - sat); in setSaturation() 111 const SkScalar G = SkScalarMul(kHueG, SK_Scalar1 - sat); in setSaturation() [all …]
|
D | SkCubicInterval.cpp | 5 return SkScalarMul(SkScalarMul(SkScalarMul(c3, t) + c2, t) + c1, t); in eval_cubic()
|
D | SkCamera.cpp | 146 SkScalar cx = SkScalarMul(fU.fY, fV.fZ) - SkScalarMul(fU.fZ, fV.fY); in dotWith() 147 SkScalar cy = SkScalarMul(fU.fZ, fV.fX) - SkScalarMul(fU.fX, fV.fY); in dotWith() 148 SkScalar cz = SkScalarMul(fU.fX, fV.fY) - SkScalarMul(fU.fY, fV.fX); in dotWith() 150 return SkScalarMul(cx, dx) + SkScalarMul(cy, dy) + SkScalarMul(cz, dz); in dotWith()
|
D | SkLayer.cpp | 137 SkScalar tx = SkScalarMul(m_anchorPoint.fX, m_size.width()); in getLocalTransform() 138 SkScalar ty = SkScalarMul(m_anchorPoint.fY, m_size.height()); in getLocalTransform() 181 opacity = SkScalarMul(opacity, this->getOpacity()); in draw()
|
/external/skia/src/core/ |
D | SkMatrix.cpp | 171 fMat[kMTransX] += SkScalarMul(fMat[kMScaleX], dx) + in preTranslate() 172 SkScalarMul(fMat[kMSkewX], dy); in preTranslate() 173 fMat[kMTransY] += SkScalarMul(fMat[kMSkewY], dx) + in preTranslate() 174 SkScalarMul(fMat[kMScaleY], dy); in preTranslate() 201 fMat[kMTransX] = px - SkScalarMul(sx, px); in setScale() 202 fMat[kMTransY] = py - SkScalarMul(sy, py); in setScale() 240 fMat[kMScaleX] = SkScalarMul(fMat[kMScaleX], sx); in preScale() 241 fMat[kMSkewY] = SkScalarMul(fMat[kMSkewY], sx); in preScale() 242 fMat[kMPersp0] = SkScalarMul(fMat[kMPersp0], sx); in preScale() 244 fMat[kMSkewX] = SkScalarMul(fMat[kMSkewX], sy); in preScale() [all …]
|
D | SkStrokerPriv.cpp | 37 SkScalar sx = SkScalarMul(nx, CUBIC_ARC_FACTOR); in RoundCapper() 38 SkScalar sy = SkScalarMul(ny, CUBIC_ARC_FACTOR); in RoundCapper() 72 return SkScalarMul(before.fX, after.fY) - SkScalarMul(before.fY, after.fX) > 0; in is_clockwise() 208 mid.set(SkScalarMul(before.fX + after.fX, radius), in MiterJoiner() 209 SkScalarMul(before.fY + after.fY, radius)); in MiterJoiner()
|
D | SkPaint.cpp | 887 width = SkScalarMul(width, scale); in measureText() 889 bounds->fLeft = SkScalarMul(bounds->fLeft, scale); in measureText() 890 bounds->fTop = SkScalarMul(bounds->fTop, scale); in measureText() 891 bounds->fRight = SkScalarMul(bounds->fRight, scale); in measureText() 892 bounds->fBottom = SkScalarMul(bounds->fBottom, scale); in measureText() 986 scalarWidth = SkScalarMul(scalarWidth, scale); in breakText() 1036 metrics->fTop = SkScalarMul(metrics->fTop, scale); in getFontMetrics() 1037 metrics->fAscent = SkScalarMul(metrics->fAscent, scale); in getFontMetrics() 1038 metrics->fDescent = SkScalarMul(metrics->fDescent, scale); in getFontMetrics() 1039 metrics->fBottom = SkScalarMul(metrics->fBottom, scale); in getFontMetrics() [all …]
|
D | SkPath.cpp | 438 SkScalar sx = SkScalarMul(rx, CUBIC_ARC_FACTOR); in addRoundRect() 439 SkScalar sy = SkScalarMul(ry, CUBIC_ARC_FACTOR); in addRoundRect() 559 SkScalar sx = SkScalarMul(rx, CUBIC_ARC_FACTOR); in addOval() 560 SkScalar sy = SkScalarMul(ry, CUBIC_ARC_FACTOR); in addOval() 576 SkScalar sx = SkScalarMul(rx, SK_ScalarTanPIOver8); in addOval() 577 SkScalar sy = SkScalarMul(ry, SK_ScalarTanPIOver8); in addOval() 578 SkScalar mx = SkScalarMul(rx, SK_ScalarRoot2Over2); in addOval() 579 SkScalar my = SkScalarMul(ry, SK_ScalarRoot2Over2); in addOval() 748 SkScalar xx = x1 - SkScalarMul(dist, before.fX); in arcTo() 749 SkScalar yy = y1 - SkScalarMul(dist, before.fY); in arcTo() [all …]
|
D | SkPoint.cpp | 82 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); in scale()
|
/external/skia/src/animator/ |
D | SkDrawColor.cpp | 50 hue = SkScalarMul(green - blue, part60); in RGB_to_HSV() 55 hue = 120 * SK_Scalar1 + SkScalarMul(blue - red, part60); in RGB_to_HSV() 57 hue = 240 * SK_Scalar1 + SkScalarMul(red - green, part60); in RGB_to_HSV() 82 SkScalar p = SkScalarMul(value , SK_Scalar1 - saturation); in HSV_to_RGB() 83 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); in HSV_to_RGB() 84 SkScalar t = SkScalarMul(value, SK_Scalar1 - in HSV_to_RGB() 85 SkScalarMul(saturation, SK_Scalar1 - fraction)); in HSV_to_RGB()
|
D | SkDisplayRandom.cpp | 64 value->fOperand.fScalar = min + SkScalarMul(max - min, relativeT); in getProperty()
|
/external/skia/include/core/ |
D | SkPoint.h | 341 return SkScalarMul(a.fX, b.fX) + SkScalarMul(a.fY, b.fY); in DotProduct() 347 return SkScalarMul(a.fX, b.fY) - SkScalarMul(a.fY, b.fX); in CrossProduct() 365 return SkScalarMul(dx, dx) + SkScalarMul(dy, dy); in distanceToSqd()
|
D | SkScalar.h | 156 #define SkScalarMul(a, b) ((float)(a) * (b)) macro 248 #define SkScalarMul(a, b) SkFixedMul(a, b) macro 306 return A + SkScalarMul(B - A, t); in SkScalarInterp()
|
/external/skia/src/effects/ |
D | SkDashPathEffect.cpp | 113 SkScalar dlen = SkScalarMul(fInitialDashLength, scale); in filterPath() 135 dlen = SkScalarMul(intervals[index], scale); in filterPath() 141 meas.getSegment(0, SkScalarMul(fInitialDashLength, scale), dst, !addedSegment); in filterPath()
|
D | SkDiscretePathEffect.cpp | 62 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath() 67 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
|
D | SkGradientShader.cpp | 1495 SkScalar discrim = SkScalarSquare(b) - SkScalarMul(foura, c); in two_point_radial() 1502 result = SkScalarMul(-b + rootDiscrim, oneOverTwoA); in two_point_radial() 1504 result = SkScalarMul(-b - rootDiscrim, oneOverTwoA); in two_point_radial() 1540 matrix->setSinCos(-SkScalarMul(invDiffL, fDiff.fY), in asABitmap() 1541 SkScalarMul(invDiffL, fDiff.fX)); in asABitmap() 1585 SkFixed foura = SkScalarToFixed(SkScalarMul(fA, 4)); in shadeSpan() 1701 SkScalar b = (SkScalarMul(fDiff.fX, fx) + in shadeSpan() 1702 SkScalarMul(fDiff.fY, fy) - fStartRadius) * 2; in shadeSpan() 1703 SkScalar db = (SkScalarMul(fDiff.fX, dx) + in shadeSpan() 1704 SkScalarMul(fDiff.fY, dy)) * 2; in shadeSpan() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
D | Layer.cpp | 120 SkScalar tx = SkScalarMul(m_anchorPoint.fX, m_size.width()); in getLocalTransform() 121 SkScalar ty = SkScalarMul(m_anchorPoint.fY, m_size.height()); in getLocalTransform() 175 opacity = SkScalarMul(opacity, getOpacity()); in draw()
|
/external/skia/src/views/ |
D | SkWidget.cpp | 50 SkScalar dy = SkScalarMul(height, scale); 55 paint.setAlpha((U8)SkScalarMul(alpha, SK_Scalar1 - SkScalarAbs(scale))); 58 paint.setAlpha((U8)SkScalarMul(alpha, SkScalarAbs(scale))); 290 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent));
|
D | SkTextBox.cpp | 174 scaledSpacing = SkScalarMul(fontHeight, fSpacingMul) + fSpacingAdd; in draw() 234 SkScalar spacing = SkScalarMul(fPaint->getTextSize(), fSpacingMul) + fSpacingAdd; in getTextHeight()
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 140 colorData[i][0] = SkScalarMul(SkColorGetR(info.fColors[i]), scale); in gradientFunctionCode() 141 colorData[i][1] = SkScalarMul(SkColorGetG(info.fColors[i]), scale); in gradientFunctionCode() 142 colorData[i][2] = SkScalarMul(SkColorGetB(info.fColors[i]), scale); in gradientFunctionCode() 241 SkScalar a = SkScalarMul(dx, dx) + SkScalarMul(dy, dy) - SK_Scalar1; in twoPointRadialCode() 259 function.appendScalar(SkScalarMul(sr, sr)); in twoPointRadialCode() 263 function.appendScalar(SkScalarMul(SkIntToScalar(4), a)); in twoPointRadialCode() 272 function.appendScalar(SkScalarMul(SkIntToScalar(2), a)); in twoPointRadialCode()
|
/external/skia/gm/ |
D | pathfill.cpp | 79 path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r)); in make_star()
|
/external/skia/tests/ |
D | PaintTest.cpp | 31 SkScalarMul(paint.getStrokeWidth(), miter) : in regression_cubic()
|
/external/skia/gpu/include/ |
D | GrScalar.h | 42 #define GrMul(a,b) SkScalarMul(a,b)
|