commit | 977b9c8af3ef1b9a2fa2a0037cf3734cf2ba13d9 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 05 19:35:09 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 05 19:35:09 2012 +0000 |
tree | ecdeb79bec4abd85562a1b15c4cb6429b05737b3 | |
parent | b52cf3dd95b3d3e7445ac9b82560317c296daa42 [diff] [blame] |
Instance counting for SkRefCnt-derived objects (w/ CanvasTest fix) http://codereview.appspot.com/6242070/ git-svn-id: http://skia.googlecode.com/svn/trunk@4170 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrResource.cpp b/src/gpu/GrResource.cpp index 9efc838..a5168c8 100644 --- a/src/gpu/GrResource.cpp +++ b/src/gpu/GrResource.cpp
@@ -10,6 +10,8 @@ #include "GrResource.h" #include "GrGpu.h" +DEFINE_INST_COUNT(GrResource) + GrResource::GrResource(GrGpu* gpu) { fGpu = gpu; fNext = NULL;