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

Commit 74e0961f authored by Leon Scroggins's avatar Leon Scroggins Committed by android-build-merger
Browse files

Merge "Attach color space after performing a readback" into pi-dev am: 5bb709c3

am: 8bed8e46

Change-Id: I30163b35febc6d62d65071be32e68e77d5b6b051
parents 33bd4a88 8bed8e46
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -290,6 +290,11 @@ void Bitmap::getSkBitmap(SkBitmap* outBitmap) {
                                                     info().colorType(), info().alphaType(),
                                                     nullptr));
        uirenderer::renderthread::RenderProxy::copyGraphicBufferInto(graphicBuffer(), outBitmap);
        if (mInfo.colorSpace()) {
            sk_sp<SkPixelRef> pixelRef = sk_ref_sp(outBitmap->pixelRef());
            outBitmap->setInfo(mInfo);
            outBitmap->setPixelRef(std::move(pixelRef), 0, 0);
        }
        return;
    }
    outBitmap->setInfo(mInfo, rowBytes());