Lines Matching full:matrix
397 // 1. Get the matrix transform from the canvas.
398 // 2. Set the scale in the matrix to 1.0 while honoring the direction of the
400 // 3. Round off the X and Y translation components in the matrix. This is to
404 // 5. Set the modified matrix in the canvas. This ensures that no scaling
407 // 7. Restore the state of the canvas and the SkCanvas matrix stack.
408 SkMatrix matrix = canvas_->getTotalMatrix();
412 matrix.getScaleX() > 0 ? matrix.setScaleX(1.0f) : matrix.setScaleX(-1.0f);
413 matrix.getScaleY() > 0 ? matrix.setScaleY(1.0f) : matrix.setScaleY(-1.0f);
415 matrix.setTranslateX(SkScalarRoundToInt(matrix.getTranslateX()));
416 matrix.setTranslateY(SkScalarRoundToInt(matrix.getTranslateY()));
420 canvas_->setMatrix(matrix);
449 SkMatrix matrix;
450 matrix.setTranslate(SkIntToScalar(x), SkIntToScalar(y));
454 matrix);
543 canvas_->concat(transform.matrix());