This was added with r4719 (
f7943035) to support testing
SkTRefArray. With
703d3c70 SkTRefArray and the associated test was
removed, but the supporting InstCounterClass was not.
Review URL: https://codereview.chromium.org/
1063403003
#include "SkWeakRefCnt.h"
#include "Test.h"
-class InstCounterClass {
-public:
- InstCounterClass() { fCount = gInstCounter++; }
- InstCounterClass(const InstCounterClass& src) {
- fCount = src.fCount;
- gInstCounter += 1;
- }
- virtual ~InstCounterClass() { gInstCounter -= 1; }
-
- static int gInstCounter;
- int fCount;
-};
-
-int InstCounterClass::gInstCounter;
-
static void bounce_ref(void* data) {
SkRefCnt* ref = static_cast<SkRefCnt*>(data);
for (int i = 0; i < 100000; ++i) {