summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-01-11 00:06:49 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-01-11 05:38:52 +0100
commit98d71c4e0847797a4ba9229a8e6d832a8a3d5e0f (patch)
tree97012c315567a679abc827873746afa5fa90bdd0 /vcl/inc
parent284a7f60fff72c4d8c011ff60ea2e40163cd25c3 (diff)
tdf#69060: lock refreshing font data when loading a document
This accumulates all calls to OutputDevice::ImplRefreshAllFontData while loading document's model, to avoid multiple updates for each imported font. After loading, OutputDevice::ImplRefreshAllFontData is executed once. Change-Id: I5b23a2b8a3765dee9061b6479665d04c2ba11cbf Reviewed-on: https://gerrit.libreoffice.org/47112 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/svdata.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index beb877f728ff..ea48d774ccca 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -351,6 +351,9 @@ struct ImplSVData
bool mbDeInit = false; // Is VCL deinitializing
std::unique_ptr<SalI18NImeStatus> mpImeStatus; // interface to ime status window, only used by the X11 backend
std::unique_ptr<SalSystem> mpSalSystem; // SalSystem interface
+ int mnFontUpdatesLockCount = 0; // avoid repeated font updates
+ bool mbFontUpdatesPending = false; // need to update font data after unlock
+ bool mbFontUpdatesNewLists = false; // generate new font lists
bool mbResLocaleSet = false; // SV-Resource-Manager
std::locale maResLocale; // Resource locale
ImplSchedulerContext maSchedCtx; // indepen data for class Scheduler