sw lok: avoid expensive DLPre/PostPaint2() around InvalidateWindows()
commitd0b5ff42431d8d18ab9b70fd54206f21bbe4316a
authorMiklos Vajna <vmiklos@collabora.com>
Wed, 4 Aug 2021 11:44:24 +0000 (4 13:44 +0200)
committerMike Kaganski <mike.kaganski@collabora.com>
Mon, 9 Aug 2021 15:15:48 +0000 (9 17:15 +0200)
tree93923b994dfd8936114a1a50be57ed7eeb84de98
parenta452e6fc7cd6b44efcbc5ea5343f9bcaa01b584b
sw lok: avoid expensive DLPre/PostPaint2() around InvalidateWindows()

This shows up on profiles and it's not needed. It was only there,
because Online always needs an invalidation to have updated tiles, so
there the paint was replaced with an invalidate. And then the
drawinglayer setup/teardown was not made conditional by accident.

The PaintTile() case goes via Paint() -> PaintSwFrame(), which still
calls these functions; this commit only speeds up
SwViewShell::ImplEndAction(), which is called synchronously e.g. on
every keypress.

(cherry picked from commit aff28c59816d046d9b74460c1b17101b99b9514e)

Change-Id: I6c362f148bc2837bd842602754770c5267e16afd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120200
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
sw/source/core/view/viewsh.cxx