diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-04-09 19:40:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-10 16:53:59 +0200 |
commit | 44711d9eb53eb6247ebdb9293a3eb5e643f78059 (patch) | |
tree | cdb23eee87489751e381ea8e5126ff9a3b4a5d64 /include/svx/sdr/contact | |
parent | 566e43d2129dd6c70bb718296ce66353e7ff824b (diff) |
tdf#130326 related, speed up drawing
if we create the list every time we call
ViewContact::getViewIndependentPrimitive2DContainer
then caching the result is rather worthless.
So make the caching worthwhile, which means invalidating
it when something changes.
Change-Id: I081e9501255ec1c87454bfcc1e0a741109afa99f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/sdr/contact')
-rw-r--r-- | include/svx/sdr/contact/viewcontact.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/sdr/contact/viewcontact.hxx b/include/svx/sdr/contact/viewcontact.hxx index c5cc61883a49..d5603790ffd0 100644 --- a/include/svx/sdr/contact/viewcontact.hxx +++ b/include/svx/sdr/contact/viewcontact.hxx @@ -49,7 +49,8 @@ private: // Primitive2DContainer of the ViewContact. This contains all necessary information // for the graphical visualisation and needs to be supported by all VCs which // can be visualized. - drawinglayer::primitive2d::Primitive2DContainer mxViewIndependentPrimitive2DSequence; + mutable drawinglayer::primitive2d::Primitive2DContainer mxViewIndependentPrimitive2DSequence; + mutable bool mbNeedToCreatePrimitives; // A new ViewObjectContact was created and shall be remembered. void AddViewObjectContact(ViewObjectContact& rVOContact); |