aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPostConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPostConfig.h')
-rw-r--r--include/core/SkPostConfig.h8
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
//////////////////////////////////////////////////////////////////////