diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-09-30 10:05:53 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-09-30 16:47:14 +0200 |
commit | 2217c3fa74fb3c910566ef1de1e05da5c5a120ff (patch) | |
tree | c4b345725c009b258f98cf69eb2f4a185ff79f92 /vcl/skia/win | |
parent | 528ca2cec5b3e2a6f0c0d8719a4ad81d90920c9a (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/win')
-rw-r--r-- | vcl/skia/win/gdiimpl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx index ce67db42914b..819f024fa5cd 100644 --- a/vcl/skia/win/gdiimpl.cxx +++ b/vcl/skia/win/gdiimpl.cxx @@ -61,6 +61,8 @@ void WinSkiaSalGraphicsImpl::DeInit() void WinSkiaSalGraphicsImpl::freeResources() {} +void WinSkiaSalGraphicsImpl::Flush() { performFlush(); } + void WinSkiaSalGraphicsImpl::performFlush() { SkiaZone zone; |