vcl/skia/salbmp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2692dc5f662c74e3df63224ae829fc492503aa1e Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Dec 7 18:52:29 2021 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Fri Jan 7 10:01:12 2022 +0100 save alpha channel processing when not needed Change-Id: Icbf19e86b833c0cec08a9ac5c41c01fd2dd1a4e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128060 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index b81e55221f34..df3536b4de91 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -602,7 +602,8 @@ bool SkiaSalBitmap::AlphaBlendWith(const SalBitmap& rSalBmp) return false; otherBitmap = otherBitmapAllocated.get(); } - sk_sp<SkSurface> surface = createSkSurface(mSize); + // This is 8-bit bitmap serving as mask, so the image itself needs no alpha. + sk_sp<SkSurface> surface = createSkSurface(mSize, kOpaque_SkAlphaType); SkPaint paint; paint.setBlendMode(SkBlendMode::kSrc); // set as is surface->getCanvas()->drawImage(GetSkImage(), 0, 0, SkSamplingOptions(), &paint);