Lines Matching defs:matrix
421 bool SkRRect::transform(const SkMatrix& matrix, SkRRect* dst) const {
431 if (matrix.isIdentity()) {
436 if (!matrix.preservesAxisAlignment()) {
441 if (!matrix.mapRect(&newRect, fRect)) {
445 // The matrix may have scaled us to zero (or due to float madness, we now have collapsed
446 // some dimension of the rect, so we need to check for that. Note that matrix must be
474 SkScalar xScale = matrix.getScaleX();
475 SkScalar yScale = matrix.getScaleY();
480 if (!matrix.isScaleTranslate()) {
481 const bool isClockwise = matrix.getSkewX() < 0;
483 // The matrix location for scale changes if there is a rotation.
484 xScale = matrix.getSkewY() * (isClockwise ? 1 : -1);
485 yScale = matrix.getSkewX() * (isClockwise ? -1 : 1);