Lines Matching refs:mat

674             //SkDebugf("Concat mat non-persp type: %d\n", tmp.getType());
683 SkMatrix& SkMatrix::preConcat(const SkMatrix& mat) {
686 if(!mat.isIdentity()) {
687 this->setConcat(*this, mat);
692 SkMatrix& SkMatrix::postConcat(const SkMatrix& mat) {
695 if (!mat.isIdentity()) {
696 this->setConcat(mat, *this);
723 static double sk_determinant(const float mat[9], int isPerspective) {
725 return mat[SkMatrix::kMScaleX] *
726 dcross(mat[SkMatrix::kMScaleY], mat[SkMatrix::kMPersp2],
727 mat[SkMatrix::kMTransY], mat[SkMatrix::kMPersp1])
729 mat[SkMatrix::kMSkewX] *
730 dcross(mat[SkMatrix::kMTransY], mat[SkMatrix::kMPersp0],
731 mat[SkMatrix::kMSkewY], mat[SkMatrix::kMPersp2])
733 mat[SkMatrix::kMTransX] *
734 dcross(mat[SkMatrix::kMSkewY], mat[SkMatrix::kMPersp1],
735 mat[SkMatrix::kMScaleY], mat[SkMatrix::kMPersp0]);
737 return dcross(mat[SkMatrix::kMScaleX], mat[SkMatrix::kMScaleY],
738 mat[SkMatrix::kMSkewX], mat[SkMatrix::kMSkewY]);
742 static double sk_inv_determinant(const float mat[9], int isPerspective) {
743 double det = sk_determinant(mat, isPerspective);
1062 const SkScalar* mat = mx.fMat;
1064 SkScalar x = sdot(sx, mat[M::kMScaleX], sy, mat[M::kMSkewX], sw, mat[M::kMTransX]);
1065 SkScalar y = sdot(sx, mat[M::kMSkewY], sy, mat[M::kMScaleY], sw, mat[M::kMTransY]);
1066 SkScalar w = sdot(sx, mat[M::kMPersp0], sy, mat[M::kMPersp1], sw, mat[M::kMPersp2]);
1647 bool SkTreatAsSprite(const SkMatrix& mat, const SkISize& size, const SkSamplingOptions& sampling,
1661 if (mat.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask)) {
1666 if (!subpixelBits && !(mat.getType() & ~SkMatrix::kTranslate_Mask)) {
1671 if (mat.getScaleX() < 0 || mat.getScaleY() < 0) {
1681 mat.mapRect(&dst, src);
1685 isrc.offset(SkScalarRoundToInt(mat.getTranslateX()),
1686 SkScalarRoundToInt(mat.getTranslateY()));