Home | History | Annotate | Download | only in gfx

Lines Matching defs:matrix

403   // 1. Get the matrix transform from the canvas.
404 // 2. Set the scale in the matrix to 1.0 while honoring the direction of the
406 // 3. Round off the X and Y translation components in the matrix. This is to
410 // 5. Set the modified matrix in the canvas. This ensures that no scaling
413 // 7. Restore the state of the canvas and the SkCanvas matrix stack.
414 SkMatrix matrix = canvas_->getTotalMatrix();
418 matrix.getScaleX() > 0 ? matrix.setScaleX(1.0f) : matrix.setScaleX(-1.0f);
419 matrix.getScaleY() > 0 ? matrix.setScaleY(1.0f) : matrix.setScaleY(-1.0f);
421 matrix.setTranslateX(SkScalarRoundToInt(matrix.getTranslateX()));
422 matrix.setTranslateY(SkScalarRoundToInt(matrix.getTranslateY()));
426 canvas_->setMatrix(matrix);
455 SkMatrix matrix;
456 matrix.setTranslate(SkIntToScalar(x), SkIntToScalar(y));
460 matrix);
549 canvas_->concat(transform.matrix());