[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 24 08:46:43 UTC 2020
vcl/skia/gdiimpl.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 60bbff42643d0472fb358ea1b0d0123df113cdca
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Apr 21 17:16:18 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Fri Apr 24 10:46:06 2020 +0200
high quality scaling in skia drawTransformedBitmap (tdf#132297)
Change-Id: Iba7219be1b0d95fdfdc708f31e2626b006a5e615
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92641
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index 9dd9b6eb2418..378d51d1cf9f 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -1346,7 +1346,9 @@ bool SkiaSalGraphicsImpl::drawTransformedBitmap(const basegfx::B2DPoint& rNull,
{
SkAutoCanvasRestore autoRestore(getDrawCanvas(), true);
getDrawCanvas()->concat(aMatrix);
- getDrawCanvas()->drawImage(tmpSurface->makeImageSnapshot(), 0, 0);
+ SkPaint paint;
+ paint.setFilterQuality(kHigh_SkFilterQuality);
+ getDrawCanvas()->drawImage(tmpSurface->makeImageSnapshot(), 0, 0, &paint);
}
assert(!mXorMode);
postDraw();
More information about the Libreoffice-commits
mailing list