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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
404 #ifndef SK_BARRIERS_PLATFORM_H | 404 #ifndef SK_BARRIERS_PLATFORM_H |
405 # if SK_HAS_COMPILER_FEATURE(thread_sanitizer) | 405 # if SK_HAS_COMPILER_FEATURE(thread_sanitizer) |
406 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_tsan.h" | 406 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_tsan.h" |
407 # elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64) | 407 # elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64) |
408 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_arm.h" | 408 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_arm.h" |
409 # else | 409 # else |
410 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_x86.h" | 410 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_x86.h" |
411 # endif | 411 # endif |
412 #endif | 412 #endif |
413 | 413 |
414 ////////////////////////////////////////////////////////////////////// | |
415 | |
416 #ifndef SK_EGL | |
bsalomon
2014/09/30 13:43:58
I think the problem here is that there is no way f
| |
417 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) | |
418 # define SK_EGL | |
419 # endif | |
420 #endif | |
414 | 421 |
415 ////////////////////////////////////////////////////////////////////// | 422 ////////////////////////////////////////////////////////////////////// |
416 | 423 |
417 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 424 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
418 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 425 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
419 #elif defined(SK_GAMMA_SRGB) | 426 #elif defined(SK_GAMMA_SRGB) |
420 # define SK_GAMMA_EXPONENT (0.0f) | 427 # define SK_GAMMA_EXPONENT (0.0f) |
421 #elif !defined(SK_GAMMA_EXPONENT) | 428 #elif !defined(SK_GAMMA_EXPONENT) |
422 # define SK_GAMMA_EXPONENT (2.2f) | 429 # define SK_GAMMA_EXPONENT (2.2f) |
423 #endif | 430 #endif |
424 | 431 |
425 #endif // SkPostConfig_DEFINED | 432 #endif // SkPostConfig_DEFINED |
OLD | NEW |