OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 SkPostConfig_DEFINED | 8 #ifndef SkPostConfig_DEFINED |
9 #define SkPostConfig_DEFINED | 9 #define SkPostConfig_DEFINED |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true) | 113 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true) |
114 # endif | 114 # endif |
115 #endif | 115 #endif |
116 | 116 |
117 /////////////////////////////////////////////////////////////////////////////// | 117 /////////////////////////////////////////////////////////////////////////////// |
118 | 118 |
119 /** | 119 /** |
120 * SK_ENABLE_INST_COUNT controlls printing how many reference counted objects | 120 * SK_ENABLE_INST_COUNT controlls printing how many reference counted objects |
121 * are still held on exit. | 121 * are still held on exit. |
122 * Defaults to 1 in DEBUG and 0 in RELEASE. | 122 * Defaults to 1 in DEBUG and 0 in RELEASE. |
| 123 * FIXME: currently always 0, since it fails if multiple threads run at once |
| 124 * (see skbug.com/1219 ). |
123 */ | 125 */ |
124 #ifndef SK_ENABLE_INST_COUNT | 126 #ifndef SK_ENABLE_INST_COUNT |
125 # ifdef SK_DEBUG | 127 # ifdef SK_DEBUG |
126 # define SK_ENABLE_INST_COUNT 1 | 128 # define SK_ENABLE_INST_COUNT 0 |
127 # else | 129 # else |
128 # define SK_ENABLE_INST_COUNT 0 | 130 # define SK_ENABLE_INST_COUNT 0 |
129 # endif | 131 # endif |
130 #endif | 132 #endif |
131 | 133 |
132 /////////////////////////////////////////////////////////////////////////////// | 134 /////////////////////////////////////////////////////////////////////////////// |
133 | 135 |
134 #ifdef SK_BUILD_FOR_WIN | 136 #ifdef SK_BUILD_FOR_WIN |
135 # ifndef WIN32_LEAN_AND_MEAN | 137 # ifndef WIN32_LEAN_AND_MEAN |
136 # define WIN32_LEAN_AND_MEAN | 138 # define WIN32_LEAN_AND_MEAN |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 385 |
384 #ifndef SK_MUTEX_PLATFORM_H | 386 #ifndef SK_MUTEX_PLATFORM_H |
385 # if defined(SK_BUILD_FOR_WIN) | 387 # if defined(SK_BUILD_FOR_WIN) |
386 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" | 388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" |
387 # else | 389 # else |
388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" | 390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" |
389 # endif | 391 # endif |
390 #endif | 392 #endif |
391 | 393 |
392 #endif // SkPostConfig_DEFINED | 394 #endif // SkPostConfig_DEFINED |
OLD | NEW |