Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0678660c authored by Stan Iliev's avatar Stan Iliev Committed by android-build-merger
Browse files

Merge "Fix TextureView.getBitmap with scale layer transform" into pi-dev

am: f5d4ea61

Change-Id: I76c8480c0ce5583ce75a91d665862032415c54d8
parents c9756c91 f5d4ea61
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -82,7 +82,14 @@ bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer
            textureMatrix = textureMatrixInv;
        }

        SkMatrix matrix = SkMatrix::Concat(layerTransform, textureMatrix);
        SkMatrix matrix;
        if (dstRect) {
            // Destination rectangle is set only when we are trying to read back the content
            // of the layer. In this case we don't want to apply layer transform.
            matrix = textureMatrix;
        } else {
            matrix = SkMatrix::Concat(layerTransform, textureMatrix);
        }

        SkPaint paint;
        paint.setAlpha(layer->getAlpha());