diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-15 20:37:04 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-15 20:37:04 +0000 |
commit | 4e23068b374023d43c4c725138d523721d975892 (patch) | |
tree | 21ed906fac0e47f766a7a36f55c2a4c9d95ed6b3 /tests/GrMemoryPoolTest.cpp | |
parent | 9222838fe650a221a9b5e9400f33f46c9ae43eda (diff) |
Re-enable inst counting in debug builds.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7098066
git-svn-id: http://skia.googlecode.com/svn/trunk@7206 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/GrMemoryPoolTest.cpp')
-rw-r--r-- | tests/GrMemoryPoolTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/GrMemoryPoolTest.cpp b/tests/GrMemoryPoolTest.cpp index 3f00f673c5..8660ea2a3b 100644 --- a/tests/GrMemoryPoolTest.cpp +++ b/tests/GrMemoryPoolTest.cpp @@ -50,7 +50,7 @@ public: static A* Create(SkRandom* r); static void SetAllocator(size_t preallocSize, size_t minAllocSize) { -#ifdef SK_ENABLE_INST_COUNT +#if SK_ENABLE_INST_COUNT SkASSERT(0 == GetInstanceCount()); #endif GrMemoryPool* pool = new GrMemoryPool(preallocSize, minAllocSize); @@ -58,7 +58,7 @@ public: } static void ResetAllocator() { -#ifdef SK_ENABLE_INST_COUNT +#if SK_ENABLE_INST_COUNT SkASSERT(0 == GetInstanceCount()); #endif gPool.reset(NULL); @@ -233,7 +233,7 @@ static void test_memory_pool(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, rec.fInstance->checkValues(rec.fValue)); delete rec.fInstance; } -#ifdef SK_ENABLE_INST_COUNT +#if SK_ENABLE_INST_COUNT REPORTER_ASSERT(reporter, !A::GetInstanceCount()); #endif } |