vcl/source/window/window.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 8455fe462a5a0e82ed2f98d303d36623b5920f9d Author: Michael Meeks <michael.me...@collabora.com> Date: Fri Jan 29 15:31:58 2016 +0100
headless: don't let windows become really visible to avoid paints. Paint at the wrong time has a habit of allocating over-large OutputDevice's for the drawing layer; saves 7Mb of heap for a dummy tilebench document. Change-Id: Ie06df705a55faadea2b06fd24b904d95ae64fd83 Reviewed-on: https://gerrit.libreoffice.org/21919 Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 599514d..0430ffd 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1283,6 +1283,10 @@ SalGraphics* Window::ImplGetFrameGraphics() const void Window::ImplSetReallyVisible() { + // For now, no window is really visible in headless mode. + if( Application::IsHeadlessModeEnabled() ) + return; + // #i43594# it is possible that INITSHOW was never send, because the visibility state changed between // ImplCallInitShow() and ImplSetReallyVisible() when called from Show() // mbReallyShown is a useful indicator _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits