Blame SOURCES/0087-Removed-some-whole-page-invalidations-in-impress.patch

135360
From 41fe248a52c4685a4f59dd18bb9885f3576fd0ed Mon Sep 17 00:00:00 2001
135360
From: Mihai Varga <mihai.varga@collabora.com>
135360
Date: Fri, 31 Jul 2015 18:24:33 +0300
135360
Subject: [PATCH 087/398] Removed some whole page invalidations in impress
135360
135360
1. For tiled rendering, don't invalidate the whole page when hiding it
135360
2. Don't invalidate when showing a page because we've just hidden the
135360
previous one
135360
3. No need for invalidation when setting visible layers
135360
135360
Change-Id: I858401b22c95093c58ec00896fe92b766fddb6de
135360
Reviewed-on: https://gerrit.libreoffice.org/17452
135360
Tested-by: Jenkins <ci@libreoffice.org>
135360
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
135360
(cherry picked from commit a381d16d23d0efb678e9e410db3ad23313693640)
135360
---
135360
 include/svx/svdpagv.hxx       | 2 +-
135360
 svx/source/svdraw/svdpagv.cxx | 6 ++++--
135360
 2 files changed, 5 insertions(+), 3 deletions(-)
135360
135360
diff --git a/include/svx/svdpagv.hxx b/include/svx/svdpagv.hxx
135360
index 8bf305f6be60..f28e3e7cb79d 100644
135360
--- a/include/svx/svdpagv.hxx
135360
+++ b/include/svx/svdpagv.hxx
135360
@@ -216,7 +216,7 @@ public:
135360
     void PagePosToLogic(Point& rPnt) const { rPnt+=aPgOrg; }
135360
     void PagePosToLogic(Rectangle& rRect) const { rRect.Move(aPgOrg.X(),aPgOrg.Y()); }
135360
 
135360
-    void SetVisibleLayers(const SetOfByte& rSet) { aLayerVisi=rSet; InvalidateAllWin(); }
135360
+    void SetVisibleLayers(const SetOfByte& rSet) { aLayerVisi=rSet; }
135360
     const SetOfByte& GetVisibleLayers() const { return aLayerVisi; }
135360
     void SetPrintableLayers(const SetOfByte& rSet) { aLayerPrn=rSet; }
135360
     const SetOfByte& GetPrintableLayers() const { return aLayerPrn;  }
135360
diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx
135360
index e8caa445fe9c..9c74d433e1c9 100644
135360
--- a/svx/source/svdraw/svdpagv.cxx
135360
+++ b/svx/source/svdraw/svdpagv.cxx
135360
@@ -229,7 +229,6 @@ void SdrPageView::Show()
135360
     if(!IsVisible())
135360
     {
135360
         mbVisible = true;
135360
-        InvalidateAllWin();
135360
 
135360
         for(sal_uInt32 a(0L); a < GetView().PaintWindowCount(); a++)
135360
         {
135360
@@ -242,7 +241,10 @@ void SdrPageView::Hide()
135360
 {
135360
     if(IsVisible())
135360
     {
135360
-        InvalidateAllWin();
135360
+        if (!GetView().GetModel()->isTiledRendering())
135360
+        {
135360
+            InvalidateAllWin();
135360
+        }
135360
         mbVisible = false;
135360
         ClearPageWindows();
135360
     }
135360
-- 
135360
2.12.0
135360