summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-11-17 09:55:35 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-11-17 11:00:49 +0100
commit22b930fefa68db0c581068045c68cad71879b901 (patch)
tree0f05ee9f8506ede9b6f5b249a315d3141e3cd633
parent46520710560e53c6d488d71824694bf5e460ee07 (diff)
fix SkiaTest::testDrawDelayedScaleImage() with GPU+HiDPI
Change-Id: I0bdaf2679f1f20f6ba0c28641cd8cc6756e4316b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125369 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--vcl/qa/cppunit/skia/skia.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/skia/skia.cxx b/vcl/qa/cppunit/skia/skia.cxx
index f6920ccf1d8a..b94e2ede7eba 100644
--- a/vcl/qa/cppunit/skia/skia.cxx
+++ b/vcl/qa/cppunit/skia/skia.cxx
@@ -435,6 +435,8 @@ void SkiaTest::testDrawDelayedScaleImage()
{
if (!SkiaHelper::isVCLSkiaEnabled())
return;
+ if (SkiaHelper::renderMethodToUse() != SkiaHelper::RenderRaster)
+ return; // This test tests caching that's done only in raster mode.
ScopedVclPtr<VirtualDevice> device = VclPtr<VirtualDevice>::Create(DeviceFormat::DEFAULT);
device->SetOutputSizePixel(Size(10, 10));
device->SetBackground(Wallpaper(COL_WHITE));