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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 # if 1 // set to 0 for infinite loop, which can help connecting gdb | 115 # if 1 // set to 0 for infinite loop, which can help connecting gdb |
116 # define SK_CRASH() do { SkNO_RETURN_HINT(); *(int *)(uintptr_t)0xbbadbeef
= 0; } while (false) | 116 # define SK_CRASH() do { SkNO_RETURN_HINT(); *(int *)(uintptr_t)0xbbadbeef
= 0; } while (false) |
117 # else | 117 # else |
118 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true) | 118 # define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true) |
119 # endif | 119 # endif |
120 # endif | 120 # endif |
121 #endif | 121 #endif |
122 | 122 |
123 /////////////////////////////////////////////////////////////////////////////// | 123 /////////////////////////////////////////////////////////////////////////////// |
124 | 124 |
125 /** | |
126 * SK_ENABLE_INST_COUNT controlls printing how many reference counted objects | |
127 * are still held on exit. | |
128 * Defaults to 1 in DEBUG and 0 in RELEASE. | |
129 */ | |
130 #ifndef SK_ENABLE_INST_COUNT | |
131 // Only enabled for static builds, because instance counting relies on static | |
132 // variables in functions defined in header files. | |
133 # if SK_DEVELOPER && !defined(SKIA_DLL) | |
134 # define SK_ENABLE_INST_COUNT 1 | |
135 # else | |
136 # define SK_ENABLE_INST_COUNT 0 | |
137 # endif | |
138 #endif | |
139 | |
140 /////////////////////////////////////////////////////////////////////////////// | |
141 | |
142 #ifdef SK_BUILD_FOR_WIN | 125 #ifdef SK_BUILD_FOR_WIN |
143 # ifndef WIN32_LEAN_AND_MEAN | 126 # ifndef WIN32_LEAN_AND_MEAN |
144 # define WIN32_LEAN_AND_MEAN | 127 # define WIN32_LEAN_AND_MEAN |
145 # define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED | 128 # define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED |
146 # endif | 129 # endif |
147 # ifndef NOMINMAX | 130 # ifndef NOMINMAX |
148 # define NOMINMAX | 131 # define NOMINMAX |
149 # define NOMINMAX_WAS_LOCALLY_DEFINED | 132 # define NOMINMAX_WAS_LOCALLY_DEFINED |
150 # endif | 133 # endif |
151 # | 134 # |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 # define SK_GAMMA_EXPONENT (2.2f) | 353 # define SK_GAMMA_EXPONENT (2.2f) |
371 #endif | 354 #endif |
372 | 355 |
373 ////////////////////////////////////////////////////////////////////// | 356 ////////////////////////////////////////////////////////////////////// |
374 | 357 |
375 #ifndef GR_TEST_UTILS | 358 #ifndef GR_TEST_UTILS |
376 # define GR_TEST_UTILS 1 | 359 # define GR_TEST_UTILS 1 |
377 #endif | 360 #endif |
378 | 361 |
379 #endif // SkPostConfig_DEFINED | 362 #endif // SkPostConfig_DEFINED |
OLD | NEW |