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 |
11 #if defined(SK_BUILD_FOR_WIN32) || defined(SK_BUILD_FOR_WINCE) | 11 #if defined(SK_BUILD_FOR_WIN32) |
12 # define SK_BUILD_FOR_WIN | 12 # define SK_BUILD_FOR_WIN |
13 #endif | 13 #endif |
14 | 14 |
15 #if defined(SK_DEBUG) && defined(SK_RELEASE) | 15 #if defined(SK_DEBUG) && defined(SK_RELEASE) |
16 # error "cannot define both SK_DEBUG and SK_RELEASE" | 16 # error "cannot define both SK_DEBUG and SK_RELEASE" |
17 #elif !defined(SK_DEBUG) && !defined(SK_RELEASE) | 17 #elif !defined(SK_DEBUG) && !defined(SK_RELEASE) |
18 # error "must define either SK_DEBUG or SK_RELEASE" | 18 # error "must define either SK_DEBUG or SK_RELEASE" |
19 #endif | 19 #endif |
20 | 20 |
21 #if defined(SK_SUPPORT_UNITTEST) && !defined(SK_DEBUG) | 21 #if defined(SK_SUPPORT_UNITTEST) && !defined(SK_DEBUG) |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 SK_ ## C0 ## 32_SHIFT == 24) | 208 SK_ ## C0 ## 32_SHIFT == 24) |
209 #else | 209 #else |
210 # define SK_PMCOLOR_BYTE_ORDER(C0, C1, C2, C3) \ | 210 # define SK_PMCOLOR_BYTE_ORDER(C0, C1, C2, C3) \ |
211 (SK_ ## C0 ## 32_SHIFT == 0 && \ | 211 (SK_ ## C0 ## 32_SHIFT == 0 && \ |
212 SK_ ## C1 ## 32_SHIFT == 8 && \ | 212 SK_ ## C1 ## 32_SHIFT == 8 && \ |
213 SK_ ## C2 ## 32_SHIFT == 16 && \ | 213 SK_ ## C2 ## 32_SHIFT == 16 && \ |
214 SK_ ## C3 ## 32_SHIFT == 24) | 214 SK_ ## C3 ## 32_SHIFT == 24) |
215 #endif | 215 #endif |
216 | 216 |
217 ////////////////////////////////////////////////////////////////////////////////
////////////// | 217 ////////////////////////////////////////////////////////////////////////////////
////////////// |
218 #ifndef SK_BUILD_FOR_WINCE | |
219 # include <string.h> | |
220 # include <stdlib.h> | |
221 #else | |
222 # define _CMNINTRIN_DECLARE_ONLY | |
223 # include "cmnintrin.h" | |
224 #endif | |
225 | 218 |
226 #if defined SK_DEBUG && defined SK_BUILD_FOR_WIN32 | 219 #if defined SK_DEBUG && defined SK_BUILD_FOR_WIN32 |
227 # ifdef free | 220 # ifdef free |
228 # undef free | 221 # undef free |
229 # endif | 222 # endif |
230 # include <crtdbg.h> | 223 # include <crtdbg.h> |
231 # undef free | 224 # undef free |
232 # | 225 # |
233 # ifdef SK_DEBUGx | 226 # ifdef SK_DEBUGx |
234 # if defined(SK_SIMULATE_FAILED_MALLOC) && defined(__cplusplus) | 227 # if defined(SK_SIMULATE_FAILED_MALLOC) && defined(__cplusplus) |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 # define SK_GAMMA_EXPONENT (2.2f) | 354 # define SK_GAMMA_EXPONENT (2.2f) |
362 #endif | 355 #endif |
363 | 356 |
364 ////////////////////////////////////////////////////////////////////// | 357 ////////////////////////////////////////////////////////////////////// |
365 | 358 |
366 #ifndef GR_TEST_UTILS | 359 #ifndef GR_TEST_UTILS |
367 # define GR_TEST_UTILS 1 | 360 # define GR_TEST_UTILS 1 |
368 #endif | 361 #endif |
369 | 362 |
370 #endif // SkPostConfig_DEFINED | 363 #endif // SkPostConfig_DEFINED |
OLD | NEW |