From 75d8b305bbc1c2377f23361ecd64816a350baa4c Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 23 Jan 2017 21:53:49 +0530 Subject: lok: New feature flag to turn off tiled annotations Change-Id: Ie418642242ada98d4a41f30bb6cefcd57f398ef0 Reviewed-on: https://gerrit.libreoffice.org/33472 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- comphelper/source/misc/lok.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'comphelper/source') 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) -- cgit