[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jun 27 08:43:50 UTC 2020
vcl/skia/salbmp.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 0a890e9cbd2289475455db52c2481c5a50204f28
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Sat Jun 27 09:22:18 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Sat Jun 27 10:43:16 2020 +0200
properly copy pending scale quality in SkiaSalBitmap
EnsureBitmapData() was using Create() to make a copy of the bitmap
to scale, but the quality was not copied, so it was usually
at the default (and slowest) high quality.
Change-Id: I7100304a935db420e2d55c2a9450016be1195965
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97277
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 5006f2cc824e..428592f44808 100644
--- a/vcl/skia/salbmp.cxx
+++ b/vcl/skia/salbmp.cxx
@@ -147,6 +147,7 @@ bool SkiaSalBitmap::Create(const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount)
mSize = src.mSize;
mPixelsSize = src.mPixelsSize;
mScanlineSize = src.mScanlineSize;
+ mScaleQuality = src.mScaleQuality;
#ifdef DBG_UTIL
mWriteAccessCount = 0;
#endif
@@ -685,7 +686,7 @@ void SkiaSalBitmap::EnsureBitmapData()
<< "->" << mSize << ":"
<< static_cast<int>(mScaleQuality));
mPixelsSize = mSize;
- mScaleQuality = kNone_SkFilterQuality;
+ mScaleQuality = kHigh_SkFilterQuality;
// Information about the pending scaling has been discarded, so make sure we do not
// keep around any cached images that would still need scaling.
ResetCachedDataBySize();
More information about the Libreoffice-commits
mailing list