| 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 #include "SkInstCnt.h" | 8 #include "SkInstCnt.h" |
| 9 | 9 |
| 10 #if SK_ENABLE_INST_COUNT && !defined(SKIA_DLL) // See SkInstCnt.h | 10 #if SK_ENABLE_INST_COUNT && !defined(SKIA_DLL) // See SkInstCnt.h |
| 11 bool gPrintInstCount = false; | 11 bool gPrintInstCount = false; |
| 12 void SkInstCountPrintLeaksOnExit() { gPrintInstCount = true; } |
| 13 #else |
| 14 void SkInstCountPrintLeaksOnExit() {} |
| 12 #endif | 15 #endif |
| OLD | NEW |