vcl/qa/cppunit/skia/skia.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 22b930fefa68db0c581068045c68cad71879b901
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Wed Nov 17 09:55:35 2021 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed Nov 17 11:00:49 2021 +0100

    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.lu...@collabora.com>

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));

Reply via email to