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 | 10 #if SK_ENABLE_INST_COUNT |
11 bool gPrintInstCount = false; | 11 bool gPrintInstCount = false; |
| 12 |
| 13 SK_DECLARE_STATIC_MUTEX(gAddInstChildMutex); |
| 14 |
| 15 SkBaseMutex& SkGetInstCntAddInstChildMutex() { |
| 16 return gAddInstChildMutex; |
| 17 } |
| 18 |
12 #endif | 19 #endif |
OLD | NEW |