summaryrefslogtreecommitdiff
path: root/include/svx/sdr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-02 14:42:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-03 10:46:56 +0100
commit7f02cb80ac2075b65ee1adee4e29d1d5c4819424 (patch)
tree709c0cac2c68e3d4e71370956762db19c2153c3f /include/svx/sdr
parent3337d210f3121559afc3574a41d821bb2283d773 (diff)
lose the caching in ViewObjectContact
we reload the data every time anyway, so the caching is useless Change-Id: I575cc2fbe5a2fe9f42c58894f471cabb842cdd46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126273 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/sdr')
-rw-r--r--include/svx/sdr/contact/viewobjectcontact.hxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/svx/sdr/contact/viewobjectcontact.hxx b/include/svx/sdr/contact/viewobjectcontact.hxx
index 453cfb2d90ea..de80fec63ef8 100644
--- a/include/svx/sdr/contact/viewobjectcontact.hxx
+++ b/include/svx/sdr/contact/viewobjectcontact.hxx
@@ -48,11 +48,6 @@ private:
// This range defines the object's BoundRect
basegfx::B2DRange maObjectRange;
- // PrimitiveSequence 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 mxPrimitive2DSequence;
-
// the PrimitiveAnimation if Primitive2DContainer contains animations
std::unique_ptr<sdr::animation::PrimitiveAnimation> mpPrimitiveAnimation;
@@ -69,7 +64,7 @@ protected:
// Called from getPrimitive2DSequence() when vector has changed. Evaluate object animation
// and setup accordingly
- void checkForPrimitive2DAnimations();
+ void checkForPrimitive2DAnimations(const drawinglayer::primitive2d::Primitive2DContainer& );
// This method is responsible for creating the graphical visualisation data which is
// stored/cached in the local primitive. Default gets view-independent Primitive
@@ -78,9 +73,6 @@ protected:
// This method will not handle included hierarchies and not check geometric visibility.
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const;
- // method for flushing Primitive2DContainer for VOC implementations
- void flushPrimitive2DSequence() { mxPrimitive2DSequence.clear(); }
-
public:
// basic constructor.
ViewObjectContact(ObjectContact& rObjectContact, ViewContact& rViewContact);
@@ -111,7 +103,7 @@ public:
// access to the local primitive. This will ensure that the local primitive is
// current in comparing the local one with a fresh created incarnation
// This method will not handle included hierarchies and not check visibility.
- drawinglayer::primitive2d::Primitive2DContainer const & getPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const;
+ drawinglayer::primitive2d::Primitive2DContainer getPrimitive2DSequence(const DisplayInfo& rDisplayInfo) const;
// test this VOC for visibility concerning model-view stuff like e.g. Layer
virtual bool isPrimitiveVisible(const DisplayInfo& rDisplayInfo) const;