[Libreoffice-commits] core.git: svx/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 8 09:54:48 UTC 2020
svx/source/sdr/animation/scheduler.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit b8aaac402dfe551fb63eabb06386a4631e28300a
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Apr 7 16:59:26 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Wed Apr 8 11:54:16 2020 +0200
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 at collabora.com>
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()
More information about the Libreoffice-commits
mailing list