Home
last modified time | relevance | path

Searched refs:srcPt (Results 1 – 8 of 8) sorted by relevance

/external/skia/src/effects/gradients/
DSkSweepGradient.cpp98 SkPoint srcPt; in shadeSpan() local
102 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan()
103 SkScalar dx, fx = srcPt.fX; in shadeSpan()
104 SkScalar dy, fy = srcPt.fY; in shadeSpan()
127 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan()
128 *dstC++ = cache[toggle + SkATan2_255(srcPt.fY, srcPt.fX)]; in shadeSpan()
140 SkPoint srcPt; in shadeSpan16() local
144 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan16()
145 SkScalar dx, fx = srcPt.fX; in shadeSpan16()
146 SkScalar dy, fy = srcPt.fY; in shadeSpan16()
[all …]
DSkRadialGradient.cpp178 SkPoint srcPt; in shadeSpan16() local
186 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan16()
209 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, in shadeSpan16()
215 dstProc(fDstToIndex, dstX, dstY, &srcPt); in shadeSpan16()
216 unsigned fi = proc(SkScalarToFixed(srcPt.length())); in shadeSpan16()
386 SkPoint srcPt; in shadeSpan() local
394 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan()
416 (*shadeProc)(srcPt.fX, sdx, srcPt.fY, sdy, dstC, cache, count, toggle); in shadeSpan()
421 dstProc(fDstToIndex, dstX, dstY, &srcPt); in shadeSpan()
422 unsigned fi = proc(SkScalarToFixed(srcPt.length())); in shadeSpan()
DSkTwoPointConicalGradient.cpp260 SkPoint srcPt; in shadeSpan() local
262 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan()
263 SkScalar dx, fx = srcPt.fX; in shadeSpan()
264 SkScalar dy, fy = srcPt.fY; in shadeSpan()
283 SkPoint srcPt; in shadeSpan() local
284 dstProc(fDstToIndex, dstX, dstY, &srcPt); in shadeSpan()
285 TwoPtRadialContext rec(twoPointConicalGradient.fRec, srcPt.fX, srcPt.fY, 0, 0); in shadeSpan()
DSkLinearGradient.cpp218 SkPoint srcPt; in shadeSpan() local
226 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan()
227 SkGradFixed dx, fx = SkScalarToGradFixed(srcPt.fX); in shadeSpan()
254 dstProc(fDstToIndex, dstX, dstY, &srcPt); in shadeSpan()
255 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); in shadeSpan()
407 SkPoint srcPt; in shadeSpan16() local
415 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in shadeSpan16()
416 SkGradFixed dx, fx = SkScalarToGradFixed(srcPt.fX); in shadeSpan16()
443 dstProc(fDstToIndex, dstX, dstY, &srcPt); in shadeSpan16()
444 unsigned fi = proc(SkScalarToFixed(srcPt.fX)); in shadeSpan16()
/external/skia/src/core/
DSkMatrix.cpp1305 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly2Proc() argument
1309 dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1310 dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale; in Poly2Proc()
1312 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale; in Poly2Proc()
1313 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1315 dst->fMat[kMTransX] = srcPt[0].fX; in Poly2Proc()
1316 dst->fMat[kMTransY] = srcPt[0].fY; in Poly2Proc()
1322 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly3Proc() argument
1325 dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale; in Poly3Proc()
1326 dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale; in Poly3Proc()
[all …]
DSkBitmapProcState_matrix.h98 SkPoint srcPt; in AFFINE_FILTER_NAME() local
101 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in AFFINE_FILTER_NAME()
105 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); in AFFINE_FILTER_NAME()
106 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); in AFFINE_FILTER_NAME()
/external/skia/src/opts/
DSkBitmapProcState_matrix_neon.h116 SkPoint srcPt; in AFFINE_NOFILTER_NAME() local
119 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in AFFINE_NOFILTER_NAME()
121 SkFractionalInt fx = SkScalarToFractionalInt(srcPt.fX); in AFFINE_NOFILTER_NAME()
122 SkFractionalInt fy = SkScalarToFractionalInt(srcPt.fY); in AFFINE_NOFILTER_NAME()
361 SkPoint srcPt; in AFFINE_FILTER_NAME() local
364 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in AFFINE_FILTER_NAME()
368 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); in AFFINE_FILTER_NAME()
369 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); in AFFINE_FILTER_NAME()
DSkBitmapProcState_opts_SSE2.cpp492 SkPoint srcPt; in ClampX_ClampY_filter_affine_SSE2() local
495 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in ClampX_ClampY_filter_affine_SSE2()
499 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); in ClampX_ClampY_filter_affine_SSE2()
500 SkFixed fy = SkScalarToFixed(srcPt.fY) - (oneY >> 1); in ClampX_ClampY_filter_affine_SSE2()
568 SkPoint srcPt; in ClampX_ClampY_nofilter_affine_SSE2() local
571 SkIntToScalar(y) + SK_ScalarHalf, &srcPt); in ClampX_ClampY_nofilter_affine_SSE2()
573 SkFixed fx = SkScalarToFixed(srcPt.fX); in ClampX_ClampY_nofilter_affine_SSE2()
574 SkFixed fy = SkScalarToFixed(srcPt.fY); in ClampX_ClampY_nofilter_affine_SSE2()