diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-21 20:25:03 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-21 20:25:03 +0000 |
commit | 15e9d3e66e161ce23df30bc13f8a0c87d196b463 (patch) | |
tree | 2cc4661f85d92a98de30e7bca582163321fc018d /bench/RefCntBench.cpp | |
parent | c82a8b7aa4ec19fba508c394920a9e88d3e5bd12 (diff) |
Expanded distribution of instance counting
http://codereview.appspot.com/6300114/
git-svn-id: http://skia.googlecode.com/svn/trunk@4291 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/RefCntBench.cpp')
-rw-r--r-- | bench/RefCntBench.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bench/RefCntBench.cpp b/bench/RefCntBench.cpp index f21317a21a..965eb26d53 100644 --- a/bench/RefCntBench.cpp +++ b/bench/RefCntBench.cpp @@ -40,10 +40,17 @@ private: class PlacedRefCnt : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(PlacedRefCnt) + PlacedRefCnt() : SkRefCnt() { } void operator delete(void *p) { } + +private: + typedef SkRefCnt INHERITED; }; +SK_DEFINE_INST_COUNT(PlacedRefCnt) + class RefCntBench_Heap : public SkBenchmark { public: RefCntBench_Heap(void* param) : INHERITED(param) { |