diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-11-30 18:14:06 -0500 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-12-02 17:22:21 +0100 |
commit | 46722b2fc9e1021f3029f54291c18a598103cd12 (patch) | |
tree | 21d8084098bfed83a75d0d90d260ce679c508a2f /compilerplugins | |
parent | lok: add viewId to window painting, to allow special-casing on render. (diff) | |
download | core-46722b2fc9e1021f3029f54291c18a598103cd12.tar.gz core-46722b2fc9e1021f3029f54291c18a598103cd12.zip |
desktop: disable callback handling while changing the view
When changing the view, some components are disabled
and re-enabled. This triggers a flood of invalidations
that then result in rendering requests. For each rendering
the view is set, which triggers more invalidations.
The Sidebar suffers from this, and it causes cpu pegging.
This fix prevents this issue by disabling all callbacks
during setView.
Change-Id: If6b93b2ab31f568a0761f15d945a43de1bc2d4d0
Reviewed-on: https://gerrit.libreoffice.org/84184
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/84224
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/unusedmethods.results | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results index 76a8b3d457b9..0972bfa1fd8d 100644 --- a/compilerplugins/clang/unusedmethods.results +++ b/compilerplugins/clang/unusedmethods.results @@ -112,12 +112,6 @@ dbaccess/source/ui/inc/SqlNameEdit.hxx:105 void dbaui::OSQLNameEntry::set_sensitive(_Bool) dbaccess/source/ui/inc/WTypeSelect.hxx:76 void dbaui::OWizTypeSelectList::show() -desktop/inc/lib/init.hxx:83 - void desktop::CallbackFlushHandler::setEventLatch(const _Bool) -desktop/inc/lib/init.hxx:88 - _Bool desktop::CallbackFlushHandler::isEventLatchOn() const -desktop/inc/lib/init.hxx:90 - _Bool desktop::CallbackFlushHandler::isPartTilePainting() const desktop/source/lib/lokclipboard.hxx:96 LOKClipboardFactory::LOKClipboardFactory() drawinglayer/source/tools/emfpcustomlinecap.hxx:38 |