summaryrefslogtreecommitdiffstats
path: root/src/object/sp-shape.h
diff options
context:
space:
mode:
authoroctycs <2087987-octycs@users.noreply.gitlab.com>2019-06-01 14:50:20 +0000
committeroctycs <2087987-octycs@users.noreply.gitlab.com>2019-06-01 14:58:22 +0000
commite00088acaec9f2a7587e215d6771eadf8a216b3c (patch)
tree07996b8007355aa345d6dd813f943c28e0b46f4b /src/object/sp-shape.h
parentWork around `xgettext --its` crash for old gettext versions (diff)
downloadinkscape-e00088acaec9f2a7587e215d6771eadf8a216b3c.tar.gz
inkscape-e00088acaec9f2a7587e215d6771eadf8a216b3c.zip
Cache bounding box of shapes
Diffstat (limited to 'src/object/sp-shape.h')
-rw-r--r--src/object/sp-shape.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/object/sp-shape.h b/src/object/sp-shape.h
index 6289be079..10d719648 100644
--- a/src/object/sp-shape.h
+++ b/src/object/sp-shape.h
@@ -49,6 +49,11 @@ public:
int hasMarkers () const;
int numberOfMarkers (int type) const;
+ // bbox cache
+ mutable bool bbox_cache_is_valid = false;
+ mutable Geom::Affine bbox_transform_cache;
+ mutable Geom::OptRect bbox_cache;
+
public: // temporarily public, until SPPath is properly classed, etc.
SPCurve *_curve_before_lpe;