Lines Matching refs:srcPt
1304 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst,
1308 dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1309 dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale;
1311 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale;
1312 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1314 dst->fMat[kMTransX] = srcPt[0].fX;
1315 dst->fMat[kMTransY] = srcPt[0].fY;
1321 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst,
1324 dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale;
1325 dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale;
1329 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale;
1330 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1333 dst->fMat[kMTransX] = srcPt[0].fX;
1334 dst->fMat[kMTransY] = srcPt[0].fY;
1340 bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst,
1345 x0 = srcPt[2].fX - srcPt[0].fX;
1346 y0 = srcPt[2].fY - srcPt[0].fY;
1347 x1 = srcPt[2].fX - srcPt[1].fX;
1348 y1 = srcPt[2].fY - srcPt[1].fY;
1349 x2 = srcPt[2].fX - srcPt[3].fX;
1350 y2 = srcPt[2].fY - srcPt[3].fY;
1383 dst->fMat[kMScaleX] = (a2 * srcPt[3].fX + srcPt[3].fX - srcPt[0].fX) * invScale;
1384 dst->fMat[kMSkewY] = (a2 * srcPt[3].fY + srcPt[3].fY - srcPt[0].fY) * invScale;
1388 dst->fMat[kMSkewX] = (a1 * srcPt[1].fX + srcPt[1].fX - srcPt[0].fX) * invScale;
1389 dst->fMat[kMScaleY] = (a1 * srcPt[1].fY + srcPt[1].fY - srcPt[0].fY) * invScale;
1392 dst->fMat[kMTransX] = srcPt[0].fX;
1393 dst->fMat[kMTransY] = srcPt[0].fY;