Version 2 of the Instance Counting system. This one simplifies the print out of information.
http://codereview.appspot.com/6296069/
git-svn-id: http://skia.googlecode.com/svn/trunk@4255 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPathHeap.h b/src/core/SkPathHeap.h
index 99c2626..32adbc0 100644
--- a/src/core/SkPathHeap.h
+++ b/src/core/SkPathHeap.h
@@ -18,8 +18,10 @@
class SkPathHeap : public SkRefCnt {
public:
- SkPathHeap();
- SkPathHeap(SkFlattenableReadBuffer&);
+ SK_DECLARE_INST_COUNT(SkPathHeap)
+
+ SkPathHeap();
+ SkPathHeap(SkFlattenableReadBuffer&);
virtual ~SkPathHeap();
/** Copy the path into the heap, and return the new total number of paths.
@@ -41,6 +43,8 @@
SkChunkAlloc fHeap;
// we just store ptrs into fHeap here
SkTDArray<SkPath*> fPaths;
+
+ typedef SkRefCnt INHERITED;
};
#endif