Kaydet (Commit) 47c56f96 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Jan Holesovsky

Removed some whole page invalidations in impress

1. For tiled rendering, don't invalidate the whole page when hiding it
2. Don't invalidate when showing a page because we've just hidden the
previous one
3. No need for invalidation when setting visible layers

Change-Id: I858401b22c95093c58ec00896fe92b766fddb6de
Reviewed-on: https://gerrit.libreoffice.org/17452Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 07aa8685
......@@ -216,7 +216,7 @@ public:
void PagePosToLogic(Point& rPnt) const { rPnt+=aPgOrg; }
void PagePosToLogic(Rectangle& rRect) const { rRect.Move(aPgOrg.X(),aPgOrg.Y()); }
void SetVisibleLayers(const SetOfByte& rSet) { aLayerVisi=rSet; InvalidateAllWin(); }
void SetVisibleLayers(const SetOfByte& rSet) { aLayerVisi=rSet; }
const SetOfByte& GetVisibleLayers() const { return aLayerVisi; }
void SetPrintableLayers(const SetOfByte& rSet) { aLayerPrn=rSet; }
const SetOfByte& GetPrintableLayers() const { return aLayerPrn; }
......
......@@ -229,7 +229,6 @@ void SdrPageView::Show()
if(!IsVisible())
{
mbVisible = true;
InvalidateAllWin();
for(sal_uInt32 a(0L); a < GetView().PaintWindowCount(); a++)
{
......@@ -242,7 +241,10 @@ void SdrPageView::Hide()
{
if(IsVisible())
{
InvalidateAllWin();
if (!GetView().GetModel()->isTiledRendering())
{
InvalidateAllWin();
}
mbVisible = false;
ClearPageWindows();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment