Home | History | Annotate | Download | only in core

Lines Matching defs:sy

202     SkScalar sy = fMat[kMSkewY];
204 if (is_degenerate_2x2(mx, sx, sy, my)) {
211 vec[1].set(sy, my);
234 SkScalar sy = fMat[kMSkewY];
236 if (is_degenerate_2x2(mx, sx, sy, my)) {
243 vec[1].set(sy, my);
303 void SkMatrix::setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
304 if (SK_Scalar1 == sx && SK_Scalar1 == sy) {
308 fMat[kMScaleY] = sy;
310 fMat[kMTransY] = py - SkScalarMul(sy, py);
320 void SkMatrix::setScale(SkScalar sx, SkScalar sy) {
321 if (SK_Scalar1 == sx && SK_Scalar1 == sy) {
325 fMat[kMScaleY] = sy;
344 bool SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
346 m.setScale(sx, sy, px, py);
350 bool SkMatrix::preScale(SkScalar sx, SkScalar sy) {
351 if (SK_Scalar1 == sx && SK_Scalar1 == sy) {
357 m.setScale(sx, sy);
369 fMat[kMSkewX] = SkScalarMul(fMat[kMSkewX], sy);
370 fMat[kMScaleY] = SkScalarMul(fMat[kMScaleY], sy);
371 fMat[kMPersp1] = SkScalarMul(fMat[kMPersp1], sy);
378 bool SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
379 if (SK_Scalar1 == sx && SK_Scalar1 == sy) {
383 m.setScale(sx, sy, px, py);
387 bool SkMatrix::postScale(SkScalar sx, SkScalar sy) {
388 if (SK_Scalar1 == sx && SK_Scalar1 == sy) {
392 m.setScale(sx, sy);
514 void SkMatrix::setSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
519 fMat[kMSkewY] = sy;
521 fMat[kMTransY] = SkScalarMul(-sy, px);
529 void SkMatrix::setSkew(SkScalar sx, SkScalar sy) {
534 fMat[kMSkewY] = sy;
544 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
546 m.setSkew(sx, sy, px, py);
550 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy) {
552 m.setSkew(sx, sy);
556 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
558 m.setSkew(sx, sy, px, py);
562 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy) {
564 m.setSkew(sx, sy);
583 SkScalar ty, sy = SkScalarDiv(dst.height(), src.height());
587 if (sx > sy) {
589 sx = sy;
591 sy = sx;
596 ty = dst.fTop - SkScalarMul(src.fTop, sy);
601 diff = dst.width() - SkScalarMul(src.width(), sy);
603 diff = dst.height() - SkScalarMul(src.height(), sy);
618 fMat[kMScaleY] = sy;
625 if (sx != SK_Scalar1 || sy != SK_Scalar1) {
1143 SkScalar sy = src->fY;
1146 dst->fY = SkScalarMul(sx, ky) + SkScalarMul(sy, my);
1147 dst->fX = SkScalarMul(sx, mx) + SkScalarMul(sy, kx);
1165 SkScalar sy = src->fY;
1168 dst->fY = SkScalarMul(sx, ky) + SkScalarMulAdd(sy, my, ty);
1169 dst->fX = SkScalarMul(sx, mx) + SkScalarMulAdd(sy, kx, tx);
1185 SkScalar sy = src->fY;
1190 SkScalarMul(sy, m.fMat[kMSkewX]) + m.fMat[kMTransX];
1192 SkScalarMul(sy, m.fMat[kMScaleY]) + m.fMat[kMTransY];
1195 SkFractMul(sy, m.fMat[kMPersp1]) + persp2;
1198 SkScalarMulAdd(sy, m.fMat[kMPersp1], m.fMat[kMPersp2]);
1245 SkScalar sy = src[1];
1250 SkScalarMul(sy, fMat[kMSkewX]) +
1253 SkScalarMul(sy, fMat[kMScaleY]) +
1256 SkScalarMul(sy, fMat[kMPersp1]) +
1323 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1328 SkScalarMul(sy, m.fMat[kMSkewX]) + m.fMat[kMTransX];
1330 SkScalarMul(sy, m.fMat[kMScaleY]) + m.fMat[kMTransY];
1333 SkFractMul(sy, m.fMat[kMPersp1]) +
1337 SkScalarMul(sy, m.fMat[kMPersp1]) + m.fMat[kMPersp2];
1358 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1363 pt->fX = fixmuladdmul(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]) +
1365 pt->fY = fixmuladdmul(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]) +
1369 SkScalarMulAdd(sy, m.fMat[kMSkewX], m.fMat[kMTransX]);
1371 SkScalarMulAdd(sy, m.fMat[kMScaleY], m.fMat[kMTransY]);
1375 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1382 pt->fX = fixmuladdmul(sx, m.fMat[kMScaleX], sy, m.fMat[kMSkewX]);
1383 pt->fY = fixmuladdmul(sx, m.fMat[kMSkewY], sy, m.fMat[kMScaleY]);
1386 SkScalarMulAdd(sy, m.fMat[kMSkewX], m.fMat[kMTransX]);
1388 SkScalarMulAdd(sy, m.fMat[kMScaleY], m.fMat[kMTransY]);
1392 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1398 pt->fY = SkScalarMulAdd(sy, m.fMat[kMScaleY], m.fMat[kMTransY]);
1401 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1409 pt->fY = SkScalarMul(sy, m.fMat[kMScaleY]);
1412 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1417 pt->fY = sy + m.fMat[kMTransY];
1420 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy,
1425 pt->fY = sy;