summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-12 14:24:44 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-10-15 13:40:30 +0200
commitcb60edbc2c0725f0309a5b934f41e999a1fe0c5f (patch)
tree6941072413b55874a0c794d33dc4391abf5f710a /include
parent3b729db05553c1a6d461fb41c89a05702f407448 (diff)
delay, collect and compress LOK invalidations for Writer views
Due the to way views are updated on any document change, invalidations are at least O(n^2), and since LOK may use a number of views and for each view the entire document is considered to be the view area, this can lead to a huge number of invalidations that are mostly the same repeated rectangles. Change-Id: I63682958d2fc388344641dcd19fa1d2b39054b51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123617 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/viewsh.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx
index 44201db40e41..c972d67c7f13 100644
--- a/include/sfx2/viewsh.hxx
+++ b/include/sfx2/viewsh.hxx
@@ -340,6 +340,8 @@ public:
virtual void libreOfficeKitViewCallback(int nType, const char* pPayload) const override;
virtual void libreOfficeKitViewCallback(int nType, const char* pPayload, int nViewId) const override;
virtual void libreOfficeKitViewInvalidateTilesCallback(const tools::Rectangle* pRect, int nPart) const override;
+ // Performs any pending calls to libreOfficeKitViewInvalidateTilesCallback() as necessary.
+ virtual void flushPendingLOKInvalidateTiles();
/// Set if we are doing tiled searching.
void setTiledSearching(bool bTiledSearching);