diff options
Diffstat (limited to 'src/core/SkBBoxHierarchy.h')
-rw-r--r-- | src/core/SkBBoxHierarchy.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/SkBBoxHierarchy.h b/src/core/SkBBoxHierarchy.h index 347871f87b..6625a846fe 100644 --- a/src/core/SkBBoxHierarchy.h +++ b/src/core/SkBBoxHierarchy.h @@ -11,14 +11,15 @@ #include "SkRect.h" #include "SkTDArray.h" +#include "SkRefCnt.h" /** * Interface for a spatial data structure that associates user data pointers with axis-aligned * bounding boxes, and allows efficient retrieval of intersections with query rectangles. */ -class SkBBoxHierarchy { +class SkBBoxHierarchy : public SkRefCnt { public: - virtual ~SkBBoxHierarchy() { } + SK_DECLARE_INST_COUNT(SkBBoxHierarchy) /** * Insert a data pointer and corresponding bounding box @@ -47,6 +48,9 @@ public: * Gets the number of insertions */ virtual int getCount() const = 0; + +private: + typedef SkRefCnt INHERITED; }; #endif |