summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2019-07-04 15:05:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-05 08:46:46 +0200
commitf2c3ea4f54d634ab54702d6fe07ccd4d4d76bdc1 (patch)
treeb914c30b05484afbc4885c229da312e278da4a96 /vcl/source/gdi
parent7f4fe205c4b1baf01115a9e0d74655818d03ec40 (diff)
tdf#121740 improve ppt load time on windows, reduce image swapout
Reduces load time of this file by 10%. This logic is here since commit 8ab086b6cc054501bfbf7ef6fa509c393691e860 Date: Mon Sep 18 16:07:07 2000 +0000 initial import and there does not seem to be any good reason to immediately trigger a swapout. Our balancing logic will perform a swapout as necessary. Change-Id: I02592dfd3bde1a00bcca2fcbcd4d38aacc8f3de4 Reviewed-on: https://gerrit.libreoffice.org/75086 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/impgraph.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 5a621025423f..195e40d1a45a 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1652,9 +1652,6 @@ void ImpGraphic::ImplSetLink(const std::shared_ptr<GfxLink>& rGfxLink)
ensureAvailable();
mpGfxLink = rGfxLink;
-
- if (mpGfxLink && mpGfxLink->IsNative())
- mpGfxLink->SwapOut();
}
GfxLink ImpGraphic::ImplGetLink()