summaryrefslogtreecommitdiff
path: root/vcl/skia/x11/gdiimpl.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-30 10:05:53 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-09-30 16:47:14 +0200
commit2217c3fa74fb3c910566ef1de1e05da5c5a120ff (patch)
treec4b345725c009b258f98cf69eb2f4a185ff79f92 /vcl/skia/x11/gdiimpl.cxx
parent528ca2cec5b3e2a6f0c0d8719a4ad81d90920c9a (diff)
make OutputDevice::Flush() also flush Skia
Skia uses an idle timer to flush buffered Skia drawing. This has the problem that if there's a lot to do, the actual drawing to the screen may become starved and not update. Fortunately there's OutputDevice::Flush() that is called e.g. during Impress animations, so make that also work for Skia, which should make things somewhat smoother. Change-Id: Ia8629e63dc7d7a2d7200c033bc2dc2c51f6caf0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103675 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/x11/gdiimpl.cxx')
-rw-r--r--vcl/skia/x11/gdiimpl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/skia/x11/gdiimpl.cxx b/vcl/skia/x11/gdiimpl.cxx
index 68571ccb73e7..635beb1edb09 100644
--- a/vcl/skia/x11/gdiimpl.cxx
+++ b/vcl/skia/x11/gdiimpl.cxx
@@ -129,6 +129,8 @@ void X11SkiaSalGraphicsImpl::DeInit()
void X11SkiaSalGraphicsImpl::freeResources() {}
+void X11SkiaSalGraphicsImpl::Flush() { performFlush(); }
+
void X11SkiaSalGraphicsImpl::performFlush()
{
SkiaZone zone;