| 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 ). | |
| 125 */ | 123 */ |
| 126 #ifndef SK_ENABLE_INST_COUNT | 124 #ifndef SK_ENABLE_INST_COUNT |
| 127 # ifdef SK_DEBUG | 125 # ifdef SK_DEBUG |
| 128 # define SK_ENABLE_INST_COUNT 0 | 126 // Only enabled for static builds, because instance counting relies on static |
| 127 // variables in functions defined in header files. |
| 128 # define SK_ENABLE_INST_COUNT !defined(SKIA_DLL) |
| 129 # else | 129 # else |
| 130 # define SK_ENABLE_INST_COUNT 0 | 130 # define SK_ENABLE_INST_COUNT 0 |
| 131 # endif | 131 # endif |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 /////////////////////////////////////////////////////////////////////////////// | 134 /////////////////////////////////////////////////////////////////////////////// |
| 135 | 135 |
| 136 #ifdef SK_BUILD_FOR_WIN | 136 #ifdef SK_BUILD_FOR_WIN |
| 137 # ifndef WIN32_LEAN_AND_MEAN | 137 # ifndef WIN32_LEAN_AND_MEAN |
| 138 # define WIN32_LEAN_AND_MEAN | 138 # define WIN32_LEAN_AND_MEAN |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 #ifndef SK_MUTEX_PLATFORM_H | 386 #ifndef SK_MUTEX_PLATFORM_H |
| 387 # if defined(SK_BUILD_FOR_WIN) | 387 # if defined(SK_BUILD_FOR_WIN) |
| 388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" | 388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" |
| 389 # else | 389 # else |
| 390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" | 390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" |
| 391 # endif | 391 # endif |
| 392 #endif | 392 #endif |
| 393 | 393 |
| 394 #endif // SkPostConfig_DEFINED | 394 #endif // SkPostConfig_DEFINED |
| OLD | NEW |