Merge "Attach color space after performing a readback" into pi-dev
am: 5bb709c31e
Change-Id: Ia99aa64858049fbc31ba9fc9480f6feba96b20da
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user