diff options
author | mtklein <mtklein@chromium.org> | 2016-08-01 09:22:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-01 09:22:12 -0700 |
commit | 8d7f5c3f29b1ce9caaeed0e80f15eaedcf412c25 (patch) | |
tree | e440ef98f89bd75422df299081b5f113cbf7af55 /include | |
parent | 9be6866e95127b3ad55badfecd471f67e6f4612b (diff) |
Default fake gamma to sRGB.
No one appears to be using the default 2.2.
This makes SK_GAMMA_SRGB the default / a no-op, which seems more realistic.
Chrome's explicitly setting SK_GAMMA_EXPONENT or SK_GAMMA_SRGB.
We set Android platform explicitly to 1.4.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2198073002
Review-Url: https://codereview.chromium.org/2198073002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPostConfig.h | 8 |
1 files changed, 2 insertions, 6 deletions
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 ////////////////////////////////////////////////////////////////////// |