summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-01-23 21:53:49 +0530
committerJan Holesovsky <kendy@collabora.com>2017-01-23 19:32:03 +0000
commit75d8b305bbc1c2377f23361ecd64816a350baa4c (patch)
tree598cb2967cf6033aee591ff95ff57b4bdefed9f9 /comphelper
parent6d031e4e3a2e773380374b5b142db5f5ebcdcf79 (diff)
lok: New feature flag to turn off tiled annotations
Change-Id: Ie418642242ada98d4a41f30bb6cefcd57f398ef0 Reviewed-on: https://gerrit.libreoffice.org/33472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/lok.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index cf776f00c35f..44487da953ca 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -21,6 +21,8 @@ static bool g_bPartInInvalidation(false);
static bool g_bTiledPainting(false);
+static bool g_bTiledAnnotations(true);
+
void setActive(bool bActive)
{
g_bActive = bActive;
@@ -51,6 +53,16 @@ bool isTiledPainting()
return g_bTiledPainting;
}
+void setTiledAnnotations(bool bTiledAnnotations)
+{
+ g_bTiledAnnotations = bTiledAnnotations;
+}
+
+bool isTiledAnnotations()
+{
+ return g_bTiledAnnotations;
+}
+
static bool g_bLocalRendering(false);
void setLocalRendering(bool bLocalRendering)