From 917fb3c1b09eb145551eae357a1220311261532a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 Apr 2020 09:27:09 +0200 Subject: 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 --- include/vcl/gfxlink.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 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; } -- cgit