Chromium Code Reviews| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 #if !defined(SK_ATTRIBUTE) | 63 #if !defined(SK_ATTRIBUTE) |
| 64 # if defined(__clang__) || defined(__GNUC__) | 64 # if defined(__clang__) || defined(__GNUC__) |
| 65 # define SK_ATTRIBUTE(attr) __attribute__((attr)) | 65 # define SK_ATTRIBUTE(attr) __attribute__((attr)) |
| 66 # else | 66 # else |
| 67 # define SK_ATTRIBUTE(attr) | 67 # define SK_ATTRIBUTE(attr) |
| 68 # endif | 68 # endif |
| 69 #endif | 69 #endif |
| 70 | 70 |
| 71 #if !defined(SK_SUPPORT_GPU) | 71 #undef SK_SUPPORT_GPU |
|
bsalomon
2014/10/30 13:33:53
?
| |
| 72 # define SK_SUPPORT_GPU 1 | 72 #define SK_SUPPORT_GPU 0 |
| 73 #endif | |
| 74 | 73 |
| 75 /** | 74 /** |
| 76 * The clang static analyzer likes to know that when the program is not | 75 * The clang static analyzer likes to know that when the program is not |
| 77 * expected to continue (crash, assertion failure, etc). It will notice that | 76 * expected to continue (crash, assertion failure, etc). It will notice that |
| 78 * some combination of parameters lead to a function call that does not return. | 77 * some combination of parameters lead to a function call that does not return. |
| 79 * It can then make appropriate assumptions about the parameters in code | 78 * It can then make appropriate assumptions about the parameters in code |
| 80 * executed only if the non-returning function was *not* called. | 79 * executed only if the non-returning function was *not* called. |
| 81 */ | 80 */ |
| 82 #if !defined(SkNO_RETURN_HINT) | 81 #if !defined(SkNO_RETURN_HINT) |
| 83 # if SK_HAS_COMPILER_FEATURE(attribute_analyzer_noreturn) | 82 # if SK_HAS_COMPILER_FEATURE(attribute_analyzer_noreturn) |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 | 424 |
| 426 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 425 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
| 427 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 426 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
| 428 #elif defined(SK_GAMMA_SRGB) | 427 #elif defined(SK_GAMMA_SRGB) |
| 429 # define SK_GAMMA_EXPONENT (0.0f) | 428 # define SK_GAMMA_EXPONENT (0.0f) |
| 430 #elif !defined(SK_GAMMA_EXPONENT) | 429 #elif !defined(SK_GAMMA_EXPONENT) |
| 431 # define SK_GAMMA_EXPONENT (2.2f) | 430 # define SK_GAMMA_EXPONENT (2.2f) |
| 432 #endif | 431 #endif |
| 433 | 432 |
| 434 #endif // SkPostConfig_DEFINED | 433 #endif // SkPostConfig_DEFINED |
| OLD | NEW |