summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-06-08 22:54:48 -0400
committerAshod Nakashian <ashnakash@gmail.com>2018-06-18 02:26:27 +0200
commitc8d95ccecfcd31b720fdff67bbd6acbdceaf2546 (patch)
tree7309ba29c7ded6c00015fa1254bd10f2d92c1dea /include/vcl
parentcbd0d1da85a7ae6b35023274c7267872b3d920e7 (diff)
vcl: share GfxLink
When importing PDF as images, we store the PDF stream in the GfxLink. For large PDFs storing a copy of the full PDF with each page is overkill. For example a 10MB PDF with 200 pages will consume 2GB of memory! Change-Id: I99913514cf5c562683080bc817668095bee69427 Reviewed-on: https://gerrit.libreoffice.org/55571 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/graph.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 24c3f4e796a2..ab9713daff9b 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -217,7 +217,7 @@ private:
friend class GraphicObject;
public:
- void SetGfxLink(const GfxLink& rGfxLink);
+ void SetGfxLink(const std::shared_ptr<GfxLink>& rGfxLink);
GfxLink GetGfxLink() const;
bool IsGfxLink() const;