Chromium Code Reviews| Index: include/core/SkInstCnt.h |
| diff --git a/include/core/SkInstCnt.h b/include/core/SkInstCnt.h |
| index cab8ebb91650ad6736e21df7efb55e3e08130824..793e6f890252cc66e9b90f0e347e749517f78b7c 100644 |
| --- a/include/core/SkInstCnt.h |
| +++ b/include/core/SkInstCnt.h |
| @@ -123,9 +123,9 @@ extern bool gPrintInstCount; |
| className::SkInstanceCountHelper::gChildren = NULL; |
| #else |
| -#define SK_DECLARE_INST_COUNT(className) |
| -#define SK_DECLARE_INST_COUNT_TEMPLATE(className) |
| -#define SK_DECLARE_INST_COUNT_ROOT(className) |
| +#define SK_DECLARE_INST_COUNT(className) static void AddInstChild() { INHERITED::AddInstChild(); } |
|
bsalomon
2013/12/02 15:19:45
nice, should we have a comment explaining why this
|
| +#define SK_DECLARE_INST_COUNT_TEMPLATE(className) static void AddInstChild() { INHERITED::AddInstChild(); } |
| +#define SK_DECLARE_INST_COUNT_ROOT(className) static void AddInstChild() { } |
| #define SK_DEFINE_INST_COUNT(className) |
| #define SK_DEFINE_INST_COUNT_TEMPLATE(templateInfo, className) |
| #endif |