diff options
-rw-r--r-- | gyp/common.gypi | 3 | ||||
-rw-r--r-- | gyp/common_conditions.gypi | 8 | ||||
-rw-r--r-- | include/core/SkPostConfig.h | 8 |
3 files changed, 5 insertions, 14 deletions
diff --git a/gyp/common.gypi b/gyp/common.gypi index b350963515..0e3e0dde08 100644 --- a/gyp/common.gypi +++ b/gyp/common.gypi @@ -13,10 +13,9 @@ 'target_defaults': { 'defines': [ 'SK_INTERNAL', - 'SK_GAMMA_SRGB', 'SK_GAMMA_APPLY_TO_A8', 'QT_NO_KEYWORDS', - # The discardable resource cache is tested via a special bot. This is + # The discardable resource cache is tested via a special bot. This is # disabled here so we test the non-discardable use case. # 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', ], diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index 0b3e35863c..65ef9ed8b7 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -10,7 +10,7 @@ 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', 'SK_SUPPORT_GPU=<(skia_gpu)', 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', - + # Indicate that all dependency libraries are present. Clients that # are missing some of the required decoding libraries may choose # not to define these. This will disable some decoder and encoder @@ -630,14 +630,10 @@ 'defines': [ 'SK_BUILD_FOR_ANDROID', - # Android Text Tuning + # Android defines a fixed text gamma exponent instead of using SRGB 'SK_GAMMA_EXPONENT=1.4', 'SK_GAMMA_CONTRAST=0.0', ], - # Android defines a fixed gamma exponent instead of using SRGB - 'defines!': [ - 'SK_GAMMA_SRGB', - ], 'configurations': { 'Release': { 'cflags': ['-O2'], diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index e44c709b74..fa65ee6d47 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -318,12 +318,8 @@ ////////////////////////////////////////////////////////////////////// -#if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) -# error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" -#elif defined(SK_GAMMA_SRGB) -# define SK_GAMMA_EXPONENT (0.0f) -#elif !defined(SK_GAMMA_EXPONENT) -# define SK_GAMMA_EXPONENT (2.2f) +#if !defined(SK_GAMMA_EXPONENT) + #define SK_GAMMA_EXPONENT (0.0f) // SRGB #endif ////////////////////////////////////////////////////////////////////// |