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 |
| 417 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) |
| 418 # define SK_EGL 1 |
| 419 # else |
| 420 # define SK_EGL 0 |
| 421 # endif |
| 422 #endif |
414 | 423 |
415 ////////////////////////////////////////////////////////////////////// | 424 ////////////////////////////////////////////////////////////////////// |
416 | 425 |
417 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 426 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
418 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 427 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
419 #elif defined(SK_GAMMA_SRGB) | 428 #elif defined(SK_GAMMA_SRGB) |
420 # define SK_GAMMA_EXPONENT (0.0f) | 429 # define SK_GAMMA_EXPONENT (0.0f) |
421 #elif !defined(SK_GAMMA_EXPONENT) | 430 #elif !defined(SK_GAMMA_EXPONENT) |
422 # define SK_GAMMA_EXPONENT (2.2f) | 431 # define SK_GAMMA_EXPONENT (2.2f) |
423 #endif | 432 #endif |
424 | 433 |
425 #endif // SkPostConfig_DEFINED | 434 #endif // SkPostConfig_DEFINED |
OLD | NEW |