aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPM4fPriv.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-06-24 18:14:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-24 18:14:07 -0700
commita84d6606f5f53b8e1a42d55676e4f1ea47be5575 (patch)
treeee13ed80beac1f415ddd4374a3b9cf008d8ca18c /src/core/SkPM4fPriv.h
parentf8c2be3fbccc4be0ccfce25327200e07fc99fd1f (diff)
remove experimental treat-skcolor-as-srgb flag
Diffstat (limited to 'src/core/SkPM4fPriv.h')
-rw-r--r--src/core/SkPM4fPriv.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkPM4fPriv.h b/src/core/SkPM4fPriv.h
index 12bf7d0f36..fa5498f90a 100644
--- a/src/core/SkPM4fPriv.h
+++ b/src/core/SkPM4fPriv.h
@@ -11,8 +11,6 @@
#include "SkColorPriv.h"
#include "SkPM4f.h"
-extern bool gTreatSkColorAsSRGB;
-
static inline float get_alpha(const Sk4f& f4) {
return f4[SkPM4f::A];
}
@@ -108,7 +106,7 @@ static inline Sk4f Sk4f_fromS32(uint32_t src) {
// SkColor has an ordering of (b, g, r, a) if cast to an Sk4f, so the code swizzles r and b to
// produce the needed (r, g, b, a) ordering.
static inline Sk4f Sk4f_from_SkColor(SkColor color) {
- return swizzle_rb(gTreatSkColorAsSRGB ? Sk4f_fromS32(color) : Sk4f_fromL32(color));
+ return swizzle_rb(Sk4f_fromS32(color));
}
static inline uint32_t Sk4f_toL32(const Sk4f& x4) {