[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - include/vcl svx/source
Michael Meeks
michael.meeks at collabora.com
Tue Jan 12 15:42:04 PST 2016
include/vcl/scheduler.hxx | 18 ++++++++++--------
svx/source/sdr/overlay/overlaymanagerbuffered.cxx | 2 +-
2 files changed, 11 insertions(+), 9 deletions(-)
New commits:
commit 928a7a3e92e085a880ecf0d3ad5e40d41b7779bf
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/21406
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index 13d1687..95303ee 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -27,14 +27,16 @@ struct ImplSVData;
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 cba94c6..ddc49ae 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