fix drawBitmap() unittests with Skia/HiDPI
Force non-smooth scaling to get exact pixel values. Introduced
in 6792e6e5e4
.
Change-Id: Iec2633e9ef8e930688c95ceb1037696456f344f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125312
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
parent
a0a4709eb4
commit
09dfad9565
1 changed files with 2 additions and 1 deletions
|
@ -1769,7 +1769,8 @@ sk_sp<SkImage> SkiaSalGraphicsImpl::mergeCacheBitmaps(const SkiaSalBitmap& bitma
|
|||
matrix.set(SkMatrix::kMScaleX, 1.0 * targetSize.Width() / sourceSize.Width());
|
||||
matrix.set(SkMatrix::kMScaleY, 1.0 * targetSize.Height() / sourceSize.Height());
|
||||
canvas->concat(matrix);
|
||||
samplingOptions = makeSamplingOptions(BmpScaleFlag::BestQuality, matrix, 1);
|
||||
if (!isUnitTestRunning()) // unittests want exact pixel values
|
||||
samplingOptions = makeSamplingOptions(BmpScaleFlag::BestQuality, matrix, 1);
|
||||
}
|
||||
if (alphaBitmap != nullptr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue