summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-09 09:27:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-09 12:00:04 +0200
commit917fb3c1b09eb145551eae357a1220311261532a (patch)
treede1d4c9850acae03712de5afd145ebfbbb777f25 /include
parent98fc1401b4ee4573cf83ccd400cd2dc81848b7e7 (diff)
tdf#104878 speed up GfxLink compare
which shaves 5% off the rendering time Change-Id: Iab2a92088c5d1e8840a53ff57ab1a95ba5ec8e0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91947 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/gfxlink.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index 0376149f7025..0e116234fcb5 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -62,9 +62,8 @@ class VCL_DLLPUBLIC GfxLink
private:
GfxLinkType meType;
sal_uInt32 mnUserId;
-
mutable std::shared_ptr<sal_uInt8> mpSwapInData;
-
+ mutable size_t maHash;
sal_uInt32 mnSwapInDataSize;
MapMode maPrefMapMode;
Size maPrefSize;
@@ -82,6 +81,8 @@ public:
GfxLinkType GetType() const { return meType;}
+ size_t GetHash() const;
+
void SetUserId( sal_uInt32 nUserId ) { mnUserId = nUserId; }
sal_uInt32 GetUserId() const { return mnUserId; }