[Libreoffice-commits] core.git: vcl/source

Michael Meeks michael.meeks at collabora.com
Tue Feb 9 08:36:23 UTC 2016


 vcl/source/window/window.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8455fe462a5a0e82ed2f98d303d36623b5920f9d
Author: Michael Meeks <michael.meeks at 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 <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at 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


More information about the Libreoffice-commits mailing list