diff options
author | 2012-06-19 15:40:27 +0000 | |
---|---|---|
committer | 2012-06-19 15:40:27 +0000 | |
commit | 4da34e36cb7a07c3a28ae2a135b1837c26fc7aea (patch) | |
tree | 36ba4b63893a5621fe1eb377ea7cb3f4692c42b3 /include/core | |
parent | 50e4ce05521b0d95890e894691819882113aae86 (diff) |
Add GrMemoryPool as a helper to override operators new/delete
Review URL: http://codereview.appspot.com/6306090/
git-svn-id: http://skia.googlecode.com/svn/trunk@4282 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkInstCnt.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkInstCnt.h b/include/core/SkInstCnt.h index f3519a14dd..e5c44db11c 100644 --- a/include/core/SkInstCnt.h +++ b/include/core/SkInstCnt.h @@ -53,6 +53,10 @@ static SkTArray<PFCheckInstCnt> gChildren; \ } fInstanceCountHelper; \ \ + static int32_t GetInstanceCount() { \ + return SkInstanceCountHelper::gInstanceCount; \ + } \ + \ static void CheckInstanceCount() { \ if (0 != SkInstanceCountHelper::gInstanceCount) { \ SkDebugf("Leaked %s objects: %d\n", #className, \ |