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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 #endif | 384 #endif |
385 | 385 |
386 #ifndef SK_MUTEX_PLATFORM_H | 386 #ifndef SK_MUTEX_PLATFORM_H |
387 # if defined(SK_BUILD_FOR_WIN) | 387 # if defined(SK_BUILD_FOR_WIN) |
388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" | 388 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" |
389 # else | 389 # else |
390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" | 390 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" |
391 # endif | 391 # endif |
392 #endif | 392 #endif |
393 | 393 |
| 394 |
| 395 ////////////////////////////////////////////////////////////////////// |
| 396 |
| 397 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
| 398 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
| 399 #elif defined(SK_GAMMA_SRGB) |
| 400 # define SK_GAMMA_EXPONENT (0.0f) |
| 401 #elif !defined(SK_GAMMA_EXPONENT) |
| 402 # define SK_GAMMA_EXPONENT (2.2f) |
| 403 #endif |
| 404 |
394 #endif // SkPostConfig_DEFINED | 405 #endif // SkPostConfig_DEFINED |
OLD | NEW |