summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/impgraph.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-06-22 12:58:12 +0200
committerAshod Nakashian <ashnakash@gmail.com>2018-06-22 14:44:25 +0200
commit89626f5f52a80e719cb0fdbf533a4b21697db66a (patch)
tree3a6ca59b1ed93d4ff1a96f8ef8616ebde395fd3f /vcl/source/gdi/impgraph.cxx
parent3d2b4942214f586f22640e84f6d48fee475521fb (diff)
pdfium: Delay the swap out.
If we swap out too early, the constructor of GraphicObject forces a swap in, so we'd render everything during the load anyway. Change-Id: I0ea1a755242fd57ef28d082ce4bf534a32199f87 Reviewed-on: https://gerrit.libreoffice.org/56286 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'vcl/source/gdi/impgraph.cxx')
-rw-r--r--vcl/source/gdi/impgraph.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index cdad0f51e457..d2106041f9cd 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1371,14 +1371,7 @@ void ImpGraphic::ImplSetSharedLink(const std::shared_ptr<GfxLink>& pGfxLink)
mpGfxLink = pGfxLink;
if (mpGfxLink->IsNative())
- {
mpGfxLink->SwapOut();
-
- // Swap out the graphic as well.
- //FIXME: move to own function, such as SetPrepared().
- meType = GraphicType::Bitmap;
- ImplSwapOut();
- }
}
GfxLink ImpGraphic::ImplGetLink()