| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 ////////////////////////////////////////////////////////////////////// | 348 ////////////////////////////////////////////////////////////////////// |
| 349 | 349 |
| 350 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 350 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 351 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 | 351 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 |
| 352 #endif | 352 #endif |
| 353 | 353 |
| 354 ////////////////////////////////////////////////////////////////////// | 354 ////////////////////////////////////////////////////////////////////// |
| 355 | 355 |
| 356 #ifndef SK_EGL | 356 #ifndef SK_EGL |
| 357 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) | 357 # if defined(SK_BUILD_FOR_ANDROID) |
| 358 # define SK_EGL 1 | 358 # define SK_EGL 1 |
| 359 # else | 359 # else |
| 360 # define SK_EGL 0 | 360 # define SK_EGL 0 |
| 361 # endif | 361 # endif |
| 362 #endif | 362 #endif |
| 363 | 363 |
| 364 ////////////////////////////////////////////////////////////////////// | 364 ////////////////////////////////////////////////////////////////////// |
| 365 | 365 |
| 366 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 366 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
| 367 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 367 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
| 368 #elif defined(SK_GAMMA_SRGB) | 368 #elif defined(SK_GAMMA_SRGB) |
| 369 # define SK_GAMMA_EXPONENT (0.0f) | 369 # define SK_GAMMA_EXPONENT (0.0f) |
| 370 #elif !defined(SK_GAMMA_EXPONENT) | 370 #elif !defined(SK_GAMMA_EXPONENT) |
| 371 # define SK_GAMMA_EXPONENT (2.2f) | 371 # define SK_GAMMA_EXPONENT (2.2f) |
| 372 #endif | 372 #endif |
| 373 | 373 |
| 374 #endif // SkPostConfig_DEFINED | 374 #endif // SkPostConfig_DEFINED |
| OLD | NEW |