| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkInstCnt_DEFINED | 8 #ifndef SkInstCnt_DEFINED |
| 9 #define SkInstCnt_DEFINED | 9 #define SkInstCnt_DEFINED |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 private: | 70 private: |
| 71 static int32_t gCount, gRegistered; | 71 static int32_t gCount, gRegistered; |
| 72 }; | 72 }; |
| 73 // As template values, these will be deduplicated. (No one-definition rule
problems.) | 73 // As template values, these will be deduplicated. (No one-definition rule
problems.) |
| 74 template <typename T, const char*(Name)()> int32_t SkInstCount<T, Name>::gCo
unt = 0; | 74 template <typename T, const char*(Name)()> int32_t SkInstCount<T, Name>::gCo
unt = 0; |
| 75 template <typename T, const char*(Name)()> int32_t SkInstCount<T, Name>::gRe
gistered = 0; | 75 template <typename T, const char*(Name)()> int32_t SkInstCount<T, Name>::gRe
gistered = 0; |
| 76 #else | 76 #else |
| 77 #define SK_DECLARE_INST_COUNT(T) | 77 #define SK_DECLARE_INST_COUNT(T) |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 void SkInstCountPrintLeaksOnExit(); |
| 81 |
| 80 #endif // SkInstCnt_DEFINED | 82 #endif // SkInstCnt_DEFINED |
| OLD | NEW |