summaryrefslogtreecommitdiff
path: root/include/vcl/lok.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-06-09 17:11:15 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-06-09 21:21:45 +0200
commit53dd6aa5f3817d42bf676980f980051c3b7cdb03 (patch)
tree2c807dc1804d3edb7b47939df2a42782e7d89851 /include/vcl/lok.hxx
parent62b58e88d897f51a7c4e12b41d14121ab8d3396f (diff)
scale VCL's scale cache according to the number of Online views
If a document is opened in several Online views, each of them using a different zoom, then the scale cache is used for the scaling, and each view is sent updated tiles, so if there are too many views, the cache is not large enough. (Collabora T28503) Change-Id: I3fa719b0515064773fe4584fedbc8aff98e6e213 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116928 Tested-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/vcl/lok.hxx')
-rw-r--r--include/vcl/lok.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/lok.hxx b/include/vcl/lok.hxx
index 9f3f30ab7977..108f46def8aa 100644
--- a/include/vcl/lok.hxx
+++ b/include/vcl/lok.hxx
@@ -20,6 +20,10 @@ bool VCL_DLLPUBLIC isUnipoll();
void VCL_DLLPUBLIC registerPollCallbacks(LibreOfficeKitPollCallback pPollCallback,
LibreOfficeKitWakeCallback pWakeCallback, void* pData);
void VCL_DLLPUBLIC unregisterPollCallbacks();
+
+// Called to tell VCL that the number of document views has changed, so that VCL
+// can adjust e.g. sizes of bitmap caches to scale well with larger number of users.
+void VCL_DLLPUBLIC numberOfViewsChanged(int count);
}
#endif // INCLUDE_VCL_LOK_HXX