aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRTree.h
diff options
context:
space:
mode:
authorGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 15:41:50 +0000
committerGravatar rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 15:41:50 +0000
commit4813458d89fb276680168848bd861b307cf83f51 (patch)
treeb6f1f71891ea40c8857d8a66603a267a16674c3e /src/core/SkRTree.h
parent9fd7f8d2906365637dc25f98ffdede87d631ef71 (diff)
Make BBoxHierarchy ref-counted, fix leak in RTreeTest.
Review URL: https://codereview.appspot.com/6489108 git-svn-id: http://skia.googlecode.com/svn/trunk@5484 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkRTree.h')
-rw-r--r--src/core/SkRTree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkRTree.h b/src/core/SkRTree.h
index 96881596c3..1f166489a1 100644
--- a/src/core/SkRTree.h
+++ b/src/core/SkRTree.h
@@ -42,6 +42,7 @@
*/
class SkRTree : public SkBBoxHierarchy {
public:
+ SK_DECLARE_INST_COUNT(SkRTree)
/**
* Create a new R-Tree with specified min/max child counts.
@@ -175,6 +176,7 @@ private:
Node* allocateNode(uint16_t level);
+ typedef SkBBoxHierarchy INHERITED;
};
#endif