• Home
  • Raw
  • Download

Lines Matching refs:SkMatrix

31 void SkMatrix::reset() {  in reset()
59 uint8_t SkMatrix::computePerspectiveTypeMask() const { in computePerspectiveTypeMask()
71 uint8_t SkMatrix::computeTypeMask() const { in computeTypeMask()
99 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask()
100 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask()
101 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask()
102 int m11 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleY]); in computeTypeMask()
138 bool operator==(const SkMatrix& a, const SkMatrix& b) { in operator ==()
151 void SkMatrix::setTranslate(SkScalar dx, SkScalar dy) { in setTranslate()
167 bool SkMatrix::preTranslate(SkScalar dx, SkScalar dy) { in preTranslate()
169 SkMatrix m; in preTranslate()
185 bool SkMatrix::postTranslate(SkScalar dx, SkScalar dy) { in postTranslate()
187 SkMatrix m; in postTranslate()
202 void SkMatrix::setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setScale()
219 void SkMatrix::setScale(SkScalar sx, SkScalar sy) { in setScale()
235 bool SkMatrix::setIDiv(int divx, int divy) { in setIDiv()
243 bool SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preScale()
244 SkMatrix m; in preScale()
249 bool SkMatrix::preScale(SkScalar sx, SkScalar sy) { in preScale()
255 SkMatrix m; in preScale()
277 bool SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postScale()
281 SkMatrix m; in postScale()
286 bool SkMatrix::postScale(SkScalar sx, SkScalar sy) { in postScale()
290 SkMatrix m; in postScale()
310 bool SkMatrix::postIDiv(int divx, int divy) { in postIDiv()
342 void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV, in setSinCos()
360 void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV) { in setSinCos()
375 void SkMatrix::setRotate(SkScalar degrees, SkScalar px, SkScalar py) { in setRotate()
381 void SkMatrix::setRotate(SkScalar degrees) { in setRotate()
387 bool SkMatrix::preRotate(SkScalar degrees, SkScalar px, SkScalar py) { in preRotate()
388 SkMatrix m; in preRotate()
393 bool SkMatrix::preRotate(SkScalar degrees) { in preRotate()
394 SkMatrix m; in preRotate()
399 bool SkMatrix::postRotate(SkScalar degrees, SkScalar px, SkScalar py) { in postRotate()
400 SkMatrix m; in postRotate()
405 bool SkMatrix::postRotate(SkScalar degrees) { in postRotate()
406 SkMatrix m; in postRotate()
413 void SkMatrix::setSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in setSkew()
428 void SkMatrix::setSkew(SkScalar sx, SkScalar sy) { in setSkew()
443 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in preSkew()
444 SkMatrix m; in preSkew()
449 bool SkMatrix::preSkew(SkScalar sx, SkScalar sy) { in preSkew()
450 SkMatrix m; in preSkew()
455 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) { in postSkew()
456 SkMatrix m; in postSkew()
461 bool SkMatrix::postSkew(SkScalar sx, SkScalar sy) { in postSkew()
462 SkMatrix m; in postSkew()
469 bool SkMatrix::setRectToRect(const SkRect& src, const SkRect& dst, in setRectToRect()
599 if (SkScalarAbs(mat[SkMatrix::kMPersp2]) > kMatrix22Elem) { in normalize_perspective()
605 bool SkMatrix::setConcat(const SkMatrix& a, const SkMatrix& b) { in setConcat()
614 SkMatrix tmp; in setConcat()
695 bool SkMatrix::preConcat(const SkMatrix& mat) { in preConcat()
701 bool SkMatrix::postConcat(const SkMatrix& mat) { in postConcat()
725 …det = mat[SkMatrix::kMScaleX] * ((double)mat[SkMatrix::kMScaleY] * mat[SkMatrix::kMPersp2] - (do… in sk_inv_determinant()
726 …mat[SkMatrix::kMSkewX] * ((double)mat[SkMatrix::kMTransY] * mat[SkMatrix::kMPersp0] - (double)mat[ in sk_inv_determinant()
727 …mat[SkMatrix::kMTransX] * ((double)mat[SkMatrix::kMSkewY] * mat[SkMatrix::kMPersp1] - (double)mat[ in sk_inv_determinant()
729 …det = (double)mat[SkMatrix::kMScaleX] * mat[SkMatrix::kMScaleY] - (double)mat[SkMatrix::kMSkewX]… in sk_inv_determinant()
764 …mp1.setMul(mat[SkMatrix::kMScaleX], fracmuladdmul(mat[SkMatrix::kMScaleY], mat[SkMatrix::kMPersp2]… in sk_inv_determinant()
765 …tmp2.setMul(mat[SkMatrix::kMSkewX], fracmuladdmul(mat[SkMatrix::kMTransY], mat[SkMatrix::kMPersp0]… in sk_inv_determinant()
767 …mp2.setMul(mat[SkMatrix::kMTransX], fracmuladdmul(mat[SkMatrix::kMSkewY], mat[SkMatrix::kMPersp1],… in sk_inv_determinant()
770 tmp1.setMul(mat[SkMatrix::kMScaleX], mat[SkMatrix::kMScaleY]); in sk_inv_determinant()
771 tmp2.setMul(mat[SkMatrix::kMSkewX], mat[SkMatrix::kMSkewY]); in sk_inv_determinant()
796 void SkMatrix::SetAffineIdentity(SkScalar affine[6]) { in SetAffineIdentity()
805 bool SkMatrix::asAffine(SkScalar affine[6]) const { in asAffine()
820 bool SkMatrix::invert(SkMatrix* inv) const { in invert()
830 SkMatrix tmp; in invert()
918 *(SkMatrix*)this = tmp; in invert()
926 void SkMatrix::Identity_pts(const SkMatrix& m, SkPoint dst[], in Identity_pts()
934 void SkMatrix::Trans_pts(const SkMatrix& m, SkPoint dst[], in Trans_pts()
950 void SkMatrix::Scale_pts(const SkMatrix& m, SkPoint dst[], in Scale_pts()
966 void SkMatrix::ScaleTrans_pts(const SkMatrix& m, SkPoint dst[], in ScaleTrans_pts()
984 void SkMatrix::Rot_pts(const SkMatrix& m, SkPoint dst[], in Rot_pts()
1004 void SkMatrix::RotTrans_pts(const SkMatrix& m, SkPoint dst[], in RotTrans_pts()
1026 void SkMatrix::Persp_pts(const SkMatrix& m, SkPoint dst[], in Persp_pts()
1062 const SkMatrix::MapPtsProc SkMatrix::gMapPtsProcs[] = {
1063 SkMatrix::Identity_pts, SkMatrix::Trans_pts,
1064 SkMatrix::Scale_pts, SkMatrix::ScaleTrans_pts,
1065 SkMatrix::Rot_pts, SkMatrix::RotTrans_pts,
1066 SkMatrix::Rot_pts, SkMatrix::RotTrans_pts,
1068 SkMatrix::Persp_pts, SkMatrix::Persp_pts,
1069 SkMatrix::Persp_pts, SkMatrix::Persp_pts,
1070 SkMatrix::Persp_pts, SkMatrix::Persp_pts,
1071 SkMatrix::Persp_pts, SkMatrix::Persp_pts
1074 void SkMatrix::mapPoints(SkPoint dst[], const SkPoint src[], int count) const { in mapPoints()
1084 void SkMatrix::mapVectors(SkPoint dst[], const SkPoint src[], int count) const { in mapVectors()
1098 SkMatrix tmp = *this; in mapVectors()
1106 bool SkMatrix::mapRect(SkRect* dst, const SkRect& src) const { in mapRect()
1123 SkScalar SkMatrix::mapRadius(SkScalar radius) const { in mapRadius()
1138 void SkMatrix::Persp_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Persp_xy()
1173 void SkMatrix::RotTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in RotTrans_xy()
1190 void SkMatrix::Rot_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Rot_xy()
1207 void SkMatrix::ScaleTrans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in ScaleTrans_xy()
1216 void SkMatrix::Scale_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Scale_xy()
1227 void SkMatrix::Trans_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Trans_xy()
1235 void SkMatrix::Identity_xy(const SkMatrix& m, SkScalar sx, SkScalar sy, in Identity_xy()
1243 const SkMatrix::MapXYProc SkMatrix::gMapXYProcs[] = {
1244 SkMatrix::Identity_xy, SkMatrix::Trans_xy,
1245 SkMatrix::Scale_xy, SkMatrix::ScaleTrans_xy,
1246 SkMatrix::Rot_xy, SkMatrix::RotTrans_xy,
1247 SkMatrix::Rot_xy, SkMatrix::RotTrans_xy,
1249 SkMatrix::Persp_xy, SkMatrix::Persp_xy,
1250 SkMatrix::Persp_xy, SkMatrix::Persp_xy,
1251 SkMatrix::Persp_xy, SkMatrix::Persp_xy,
1252 SkMatrix::Persp_xy, SkMatrix::Persp_xy
1266 bool SkMatrix::fixedStepInX(SkScalar y, SkFixed* stepX, SkFixed* stepY) const { in fixedStepInX()
1301 SkPerspIter::SkPerspIter(const SkMatrix& m, SkScalar x0, SkScalar y0, int count) in SkPerspIter()
1305 SkMatrix::Persp_xy(m, x0, y0, &pt); in SkPerspIter()
1324 SkMatrix::Persp_xy(fMatrix, fSX, fSY, &pt); in next()
1331 SkMatrix::Persp_xy(fMatrix, fSX, fSY, &pt); in next()
1390 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly2Proc()
1408 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly3Proc()
1425 bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly4Proc()
1522 bool SkMatrix::Poly2Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly2Proc()
1539 bool SkMatrix::Poly3Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly3Proc()
1558 bool SkMatrix::Poly4Proc(const SkPoint srcPt[], SkMatrix* dst, in Poly4Proc()
1621 typedef bool (*PolyMapProc)(const SkPoint[], SkMatrix*, const SkPoint&);
1625 bool SkMatrix::setPolyToPoly(const SkPoint src[], const SkPoint dst[], in setPolyToPoly()
1649 SkMatrix::Poly2Proc, SkMatrix::Poly3Proc, SkMatrix::Poly4Proc in setPolyToPoly()
1653 SkMatrix tempMap, result; in setPolyToPoly()
1674 SkScalar SkMatrix::getMaxStretch() const { in getMaxStretch()
1715 const SkMatrix& SkMatrix::I() { in I()
1716 static SkMatrix gIdentity; in I()
1725 const SkMatrix& SkMatrix::InvalidMatrix() { in InvalidMatrix()
1726 static SkMatrix gInvalid; in InvalidMatrix()
1740 uint32_t SkMatrix::flatten(void* buffer) const { in flatten()
1748 uint32_t SkMatrix::unflatten(const void* buffer) { in unflatten()
1756 void SkMatrix::dump() const { in dump()
1762 void SkMatrix::toDumpString(SkString* str) const { in toDumpString()