[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 21:29:10 UTC 2021
vcl/skia/salbmp.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 43390c8642d575b2ebe02f9aae78d7350246119e
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Mar 12 15:53:54 2021 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Fri Mar 12 22:28:27 2021 +0100
convert to/from premultiplied alpha if needed
A mistake from bf2ba0f39be62978b512d6ed101219b9dd0dc6e4.
Change-Id: I8c732e8d79b376c9a5bb7b39c2562663e097db99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112396
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx
index e8266f86990e..0fa95deb39db 100644
--- a/vcl/skia/salbmp.cxx
+++ b/vcl/skia/salbmp.cxx
@@ -1118,8 +1118,11 @@ void SkiaSalBitmap::EnsureBitmapData()
#endif
SkBitmap bitmap;
SkPixmap pixmap;
- if (mSize == mPixelsSize && mImage->peekPixels(&pixmap))
+ if (mSize == mPixelsSize && mImage->imageInfo().alphaType() == alphaType
+ && mImage->peekPixels(&pixmap))
+ {
bitmap.installPixels(pixmap);
+ }
else
{
if (!bitmap.tryAllocPixels(SkImageInfo::MakeS32(mSize.Width(), mSize.Height(), alphaType)))
More information about the Libreoffice-commits
mailing list