Home
last modified time | relevance | path

Searched refs:SkScalarMul (Results 1 – 25 of 41) sorted by relevance

12

/external/skia/samplecode/
DSamplePatch.cpp94 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 …]
DSamplePathFill.cpp79 path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r)); in make_star()
/external/skia/src/utils/
DSkColorMatrix.cpp78 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 …]
DSkCubicInterval.cpp5 return SkScalarMul(SkScalarMul(SkScalarMul(c3, t) + c2, t) + c1, t); in eval_cubic()
DSkCamera.cpp146 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()
DSkLayer.cpp137 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/
DSkMatrix.cpp171 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 …]
DSkStrokerPriv.cpp37 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()
DSkPaint.cpp887 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 …]
DSkPath.cpp438 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 …]
DSkPoint.cpp82 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); in scale()
/external/skia/src/animator/
DSkDrawColor.cpp50 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()
DSkDisplayRandom.cpp64 value->fOperand.fScalar = min + SkScalarMul(max - min, relativeT); in getProperty()
/external/skia/include/core/
DSkPoint.h341 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()
DSkScalar.h156 #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/
DSkDashPathEffect.cpp113 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()
DSkDiscretePathEffect.cpp62 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
67 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
DSkGradientShader.cpp1495 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/
DLayer.cpp120 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/
DSkWidget.cpp50 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));
DSkTextBox.cpp174 scaledSpacing = SkScalarMul(fontHeight, fSpacingMul) + fSpacingAdd; in draw()
234 SkScalar spacing = SkScalarMul(fPaint->getTextSize(), fSpacingMul) + fSpacingAdd; in getTextHeight()
/external/skia/src/pdf/
DSkPDFShader.cpp140 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/
Dpathfill.cpp79 path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r)); in make_star()
/external/skia/tests/
DPaintTest.cpp31 SkScalarMul(paint.getStrokeWidth(), miter) : in regression_cubic()
/external/skia/gpu/include/
DGrScalar.h42 #define GrMul(a,b) SkScalarMul(a,b)

12