diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2023-03-04 21:19:08 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2023-03-07 08:34:25 +0000 |
commit | 5a41b0a42acac80d7c601f0899c82b9f390bff3d (patch) | |
tree | 84019214e43a52bf2a88f58f60a507aeef0b485c /desktop | |
parent | 925c7ca82711e65e457f96bc167f04d49cc974a5 (diff) |
Avoid running graphics tests when in lok mode.
Best to avoid allocating and freeing 64Mb of RAM, and
burning lots of CPU doing CPU rendering on an invisible
for each document loaded through lok API.
Change-Id: I656b400159b9d6a7a9f2c79d188e3aec9b3dd0e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148258
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 135a5b5fdb1f..d2eb5f3e2a9b 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -81,6 +81,7 @@ #include <desktop/exithelper.h> #include <sal/log.hxx> #include <toolkit/helper/vclunohelper.hxx> +#include <comphelper/lok.hxx> #include <comphelper/configuration.hxx> #include <comphelper/fileurl.hxx> #include <comphelper/threadpool.hxx> @@ -340,6 +341,8 @@ namespace { void runGraphicsRenderTests() { + if (comphelper::LibreOfficeKit::isActive()) + return; #if !ENABLE_WASM_STRIP_PINGUSER if (!utl::isProductVersionUpgraded(false)) { |