aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/RefCntBench.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 20:25:03 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 20:25:03 +0000
commit15e9d3e66e161ce23df30bc13f8a0c87d196b463 (patch)
tree2cc4661f85d92a98de30e7bca582163321fc018d /bench/RefCntBench.cpp
parentc82a8b7aa4ec19fba508c394920a9e88d3e5bd12 (diff)
Expanded distribution of instance counting
Diffstat (limited to 'bench/RefCntBench.cpp')
-rw-r--r--bench/RefCntBench.cpp7
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) {