Lines Matching refs:srcPt
1310 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst,
1314 dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1315 dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale;
1317 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale;
1318 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1320 dst->fMat[kMTransX] = srcPt[0].fX;
1321 dst->fMat[kMTransY] = srcPt[0].fY;
1327 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst,
1330 dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale;
1331 dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale;
1335 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale;
1336 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale;
1339 dst->fMat[kMTransX] = srcPt[0].fX;
1340 dst->fMat[kMTransY] = srcPt[0].fY;
1346 bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst,
1351 x0 = srcPt[2].fX - srcPt[0].fX;
1352 y0 = srcPt[2].fY - srcPt[0].fY;
1353 x1 = srcPt[2].fX - srcPt[1].fX;
1354 y1 = srcPt[2].fY - srcPt[1].fY;
1355 x2 = srcPt[2].fX - srcPt[3].fX;
1356 y2 = srcPt[2].fY - srcPt[3].fY;
1389 dst->fMat[kMScaleX] = (a2 * srcPt[3].fX + srcPt[3].fX - srcPt[0].fX) * invScale;
1390 dst->fMat[kMSkewY] = (a2 * srcPt[3].fY + srcPt[3].fY - srcPt[0].fY) * invScale;
1394 dst->fMat[kMSkewX] = (a1 * srcPt[1].fX + srcPt[1].fX - srcPt[0].fX) * invScale;
1395 dst->fMat[kMScaleY] = (a1 * srcPt[1].fY + srcPt[1].fY - srcPt[0].fY) * invScale;
1398 dst->fMat[kMTransX] = srcPt[0].fX;
1399 dst->fMat[kMTransY] = srcPt[0].fY;