From 1c2e5e47a4bdccc6682071c06b9e744bbeac6e52 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Tue, 26 Nov 2019 15:49:07 +0100 Subject: use idle priority in visualbackendtest At least Skia and OpenGL use POST_PAINT priority for flushing drawn contents to the screen. Using the higher REPAINT priority here could mean that actually showing the contents would not happen. Also, at least with Skia+Vulkan, it seems that Skia could queue commands indefinitely, eventually running out of resources. Change-Id: Ia3969bad18d710b006325a0fba11dc318ff93786 --- vcl/backendtest/VisualBackendTest.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/backendtest') diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index cab225918087..47b4149ef324 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -103,7 +103,7 @@ public: , mpVDev(VclPtr::Create()) { maUpdateTimer.SetInvokeHandler(LINK(this, VisualBackendTestWindow, updateHdl)); - maUpdateTimer.SetPriority(TaskPriority::REPAINT); + maUpdateTimer.SetPriority(TaskPriority::DEFAULT_IDLE); if (mbAnimate) { maUpdateTimer.SetTimeout(1000.0); -- cgit