Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: tests/GrMemoryPoolTest.cpp

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkRemotableFontMgr_win_dw.cpp ('k') | tests/LListTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GrMemoryPoolTest.cpp
diff --git a/tests/GrMemoryPoolTest.cpp b/tests/GrMemoryPoolTest.cpp
index 1ba184b45f11251a3c9211f3271a8477b4d2bd1e..81392ce3d526b2ab3833a0d2626e3df5d55c9b4d 100644
--- a/tests/GrMemoryPoolTest.cpp
+++ b/tests/GrMemoryPoolTest.cpp
@@ -9,7 +9,6 @@
// This is a GPU-backend specific test
#if SK_SUPPORT_GPU
#include "GrMemoryPool.h"
-#include "SkInstCnt.h"
#include "SkRandom.h"
#include "SkTDArray.h"
#include "SkTemplates.h"
@@ -44,22 +43,14 @@ public:
}
}
- SK_DECLARE_INST_COUNT(A);
-
static A* Create(SkRandom* r);
static void SetAllocator(size_t preallocSize, size_t minAllocSize) {
-#if SK_ENABLE_INST_COUNT
- SkASSERT(0 == GetInstanceCount());
-#endif
GrMemoryPool* pool = new GrMemoryPool(preallocSize, minAllocSize);
gPool.reset(pool);
}
static void ResetAllocator() {
-#if SK_ENABLE_INST_COUNT
- SkASSERT(0 == GetInstanceCount());
-#endif
gPool.reset(NULL);
}
@@ -232,9 +223,6 @@ DEF_TEST(GrMemoryPool, reporter) {
REPORTER_ASSERT(reporter, rec.fInstance->checkValues(rec.fValue));
delete rec.fInstance;
}
-#if SK_ENABLE_INST_COUNT
- REPORTER_ASSERT(reporter, !A::GetInstanceCount());
-#endif
}
}
}
« no previous file with comments | « src/ports/SkRemotableFontMgr_win_dw.cpp ('k') | tests/LListTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698