aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-13 18:54:08 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-13 18:54:08 +0000
commit4d73ac22a1b99402fc8cff78a4eb4b27aa8fe019 (patch)
treee12e9be96cdc105dfc275ee9ada6982d81d3e4fb /gm
parent972265db219ce25b5159879c75e6c62efaf0fa79 (diff)
Version 2 of the Instance Counting system. This one simplifies the print out of information.
Diffstat (limited to 'gm')
-rw-r--r--gm/gmmain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index e91ea8f549..877d0afa56 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1086,9 +1086,9 @@ int main(int argc, char * const argv[]) {
delete grFactory;
SkGraphics::Term();
- PRINT_INST_COUNT(SkRefCnt);
- PRINT_INST_COUNT(GrResource);
- PRINT_INST_COUNT(GrAARectRenderer);
+#ifdef SK_DEBUG
+ SkRefCnt::CheckInstanceCount();
+#endif
return (0 == testsFailed) ? 0 : -1;
}