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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 380 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
381 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 | 381 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 |
382 #endif | 382 #endif |
383 | 383 |
384 ////////////////////////////////////////////////////////////////////// | 384 ////////////////////////////////////////////////////////////////////// |
385 | 385 |
386 #ifndef SK_ATOMICS_PLATFORM_H | 386 #ifndef SK_ATOMICS_PLATFORM_H |
387 # if defined(_MSC_VER) | 387 # if defined(_MSC_VER) |
388 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_win.h" | 388 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_win.h" |
389 # elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) | |
390 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_android.h" | |
391 # else | 389 # else |
392 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_sync.h" | 390 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_sync.h" |
393 # endif | 391 # endif |
394 #endif | 392 #endif |
395 | 393 |
396 #ifndef SK_MUTEX_PLATFORM_H | 394 #ifndef SK_MUTEX_PLATFORM_H |
397 # if defined(SK_BUILD_FOR_WIN) | 395 # if defined(SK_BUILD_FOR_WIN) |
398 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" | 396 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h" |
399 # else | 397 # else |
400 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" | 398 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h" |
401 # endif | 399 # endif |
402 #endif | 400 #endif |
403 | 401 |
404 | 402 |
405 ////////////////////////////////////////////////////////////////////// | 403 ////////////////////////////////////////////////////////////////////// |
406 | 404 |
407 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 405 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
408 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 406 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
409 #elif defined(SK_GAMMA_SRGB) | 407 #elif defined(SK_GAMMA_SRGB) |
410 # define SK_GAMMA_EXPONENT (0.0f) | 408 # define SK_GAMMA_EXPONENT (0.0f) |
411 #elif !defined(SK_GAMMA_EXPONENT) | 409 #elif !defined(SK_GAMMA_EXPONENT) |
412 # define SK_GAMMA_EXPONENT (2.2f) | 410 # define SK_GAMMA_EXPONENT (2.2f) |
413 #endif | 411 #endif |
414 | 412 |
415 #endif // SkPostConfig_DEFINED | 413 #endif // SkPostConfig_DEFINED |
OLD | NEW |