Lines Matching defs:matrix

749     // Push scale factor into layer matrix and device matrix (net no change, but the layer will have
820 static bool draw_layer_as_sprite(const SkMatrix& matrix, const SkISize& size) {
826 return SkTreatAsSprite(matrix, size, sampling, paint);
840 // parameters need to respect the current matrix, which is not necessarily the local matrix that
860 // Compute the image filter mapping by decomposing the local->device matrix of dst and
1115 // mapping until being combined with the previous device-to-global matrix, at which point
1313 // not the case. Until we update accessTopLayerPixels() to accept a coord space matrix
1372 void SkCanvas::concat(const SkMatrix& matrix) {
1373 if (matrix.isIdentity()) {
1376 this->concat(SkM44(matrix));
1399 void SkCanvas::setMatrix(const SkMatrix& matrix) {
1400 this->setMatrix(SkM44(matrix));
1639 const SkMatrix* matrix) {
1645 SkRect tmp = matrix ? matrix->mapRect(bounds) : bounds;
2057 // We also have to temporarily whack the device matrix since clipRegion is affected by the
2058 // global-to-device matrix and clipRect is affected by the local-to-device.
2061 // ~adtr will reset the local-to-device matrix so that drawPaint() shades correctly.
2472 SkMatrix matrix = SkMatrix::Translate(x, y);
2473 this->onDrawDrawable(dr, &matrix);
2479 void SkCanvas::drawDrawable(SkDrawable* dr, const SkMatrix* matrix) {
2484 if (matrix && matrix->isIdentity()) {
2485 matrix = nullptr;
2487 this->onDrawDrawable(dr, matrix);
2490 void SkCanvas::onDrawDrawable(SkDrawable* dr, const SkMatrix* matrix) {
2494 this->topDevice()->drawDrawable(dr, matrix, this);
2640 void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) {}
2643 void SkCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
2647 void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) {
2651 if (matrix && matrix->isIdentity()) {
2652 matrix = nullptr;
2655 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect());
2658 this->onDrawPicture(picture, matrix, paint);
2662 void SkCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
2664 if (this->internalQuickReject(picture->cullRect(), paint ? *paint : SkPaint{}, matrix)) {
2668 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect());