Loading libs/hwui/hwui/Bitmap.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading
libs/hwui/hwui/Bitmap.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading