diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 10:41:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-04 12:14:31 +0200 |
commit | d697e25846433c3a589228262cf8d0f7b6f5fd7e (patch) | |
tree | 254963a3668d70dd8e3e26a8fca1b3ab3d99cf9f /vcl | |
parent | 254161f9dd2b7b3e416c54dfeb8e8c6e81cd7dcd (diff) |
remove skia workaround
No longer necessary since
commit 9c9a711ac5d8f32ac318d0e4ecab7b3a26bc2150
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Fri Jan 27 10:48:45 2023 +0200
Update skia to m111
Change-Id: Icfef07ed3683e84bdd8b94350f40ea83e95bf324
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153948
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/skia/salbmp.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index 1ce85dd0e837..97609c11d125 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -888,10 +888,7 @@ const sk_sp<SkImage>& SkiaSalBitmap::GetAlphaSkImage(DirectImage direct) const SkiaZone zone; const bool scaling = imageSize(mImage) != mSize; SkPixmap pixmap; - // Note: We cannot do this when 'scaling' because SkCanvas::drawImageRect() - // with kAlpha_8_SkColorType as source and destination would act as SkBlendMode::kSrcOver - // despite SkBlendMode::kSrc set (https://bugs.chromium.org/p/skia/issues/detail?id=9692). - if (mImage->peekPixels(&pixmap) && !scaling) + if (mImage->peekPixels(&pixmap)) { assert(pixmap.colorType() == kN32_SkColorType); // In non-GPU mode, convert 32bit data to 8bit alpha, this is faster than |