[Libreoffice-commits] core.git: include/vcl svx/source

Michael Meeks michael.meeks at collabora.com
Tue Jan 12 12:55:32 PST 2016


 include/vcl/scheduler.hxx                         |   18 ++++++++++--------
 svx/source/sdr/overlay/overlaymanagerbuffered.cxx |    2 +-
 2 files changed, 11 insertions(+), 9 deletions(-)

New commits:
commit 16c7f8916661df24f4681ec82f6bd4d7ad85d141
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Tue Jan 12 16:36:49 2016 +0000

    tdf#97075 - don't render sdr overlays before we paint.
    
    Change-Id: I0b22af14c7dd684c25cfee26e8c12b95b40479ee
    Reviewed-on: https://gerrit.libreoffice.org/21400
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index 1f440c6..760c228 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -25,14 +25,16 @@
 struct ImplSchedulerData;
 
 enum class SchedulerPriority {
-    HIGHEST   = 0,
-    HIGH      = 1,
-    RESIZE    = 2,
-    REPAINT   = 3,
-    MEDIUM    = 3,
-    LOW       = 4,
-    LOWER     = 5,
-    LOWEST    = 6
+    HIGHEST      = 0,
+    HIGH         = 1,
+    RESIZE       = 2,
+    REPAINT      = 3,
+    MEDIUM       = 3,
+    POST_PAINT   = 4,
+    DEFAULT_IDLE = 5,
+    LOW          = 6,
+    LOWER        = 7,
+    LOWEST       = 8
 };
 
 class VCL_DLLPUBLIC Scheduler
diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
index f68d7ea..9b62afe 100644
--- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
+++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
@@ -384,7 +384,7 @@ namespace sdr
             mbRefreshWithPreRendering(bRefreshWithPreRendering)
         {
             // Init timer
-            maBufferIdle.SetPriority( SchedulerPriority::HIGH );
+            maBufferIdle.SetPriority( SchedulerPriority::POST_PAINT );
             maBufferIdle.SetIdleHdl(LINK(this, OverlayManagerBuffered, ImpBufferTimerHandler));
         }
 


More information about the Libreoffice-commits mailing list