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

Commit 5bb709c3 authored by Leon Scroggins's avatar Leon Scroggins Committed by Android (Google) Code Review
Browse files

Merge "Attach color space after performing a readback" into pi-dev

parents eabeec49 3eadfde6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -296,6 +296,11 @@ void Bitmap::getSkBitmap(SkBitmap* outBitmap) {
            outBitmap->allocPixels(info());
        }
        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());