diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-04-07 16:59:26 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-04-08 11:54:16 +0200 |
commit | b8aaac402dfe551fb63eabb06386a4631e28300a (patch) | |
tree | 52c6ddd408404472eb0cd542c6a83c8ee4fd4bc4 /svx/source | |
parent | 68c3d3e46bf731c93fe5eca2e35042484f77d650 (diff) |
run svx animations at POST_PAINT priority (tdf#131753)
Skia VCL drawing (and GL too) set first drawing to POST_PAINT,
so that the contents aren't drawn prematurely the first time,
but only after the first paint has been finished. But animations
constantly running at a normal priority will starve that.
It doesn't make sense to run animations at REPAINT or higher
priorities anyway, if LO is busy painting then animating more
will just make it even busier.
Change-Id: I6ee3356c9ef9acb577f8d81976aa3df968ca2155
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91836
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/animation/scheduler.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/sdr/animation/scheduler.cxx b/svx/source/sdr/animation/scheduler.cxx index 1994dcc0b1eb..21a28fe72f9f 100644 --- a/svx/source/sdr/animation/scheduler.cxx +++ b/svx/source/sdr/animation/scheduler.cxx @@ -49,6 +49,7 @@ namespace sdr::animation mnDeltaTime(0), mbIsPaused(false) { + SetPriority(TaskPriority::POST_PAINT); } Scheduler::~Scheduler() |