diff options
author | reed <reed@google.com> | 2016-03-03 08:03:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-03 08:03:20 -0800 |
commit | c6663dc36b157e40c8225130f5970a346f9ba7c3 (patch) | |
tree | 1f074c82de9147449ba0388129ef87a3609c4ddf /src | |
parent | beab9e7ba06ea8bd01fcbfd44f2ca2ed69c8a1d9 (diff) |
respect sRGB when converting from sk to gr configs
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1756913003
Review URL: https://codereview.chromium.org/1756913003
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index a3848c77e0..6f7bee1395 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -370,9 +370,9 @@ GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType ct, SkAlphaType, SkColorProf case kARGB_4444_SkColorType: return kRGBA_4444_GrPixelConfig; case kRGBA_8888_SkColorType: - //if (kSRGB_SkColorProfileType == pt) { - // return kSRGBA_8888_GrPixelConfig; - //} + if (kSRGB_SkColorProfileType == pt) { + return kSRGBA_8888_GrPixelConfig; + } return kRGBA_8888_GrPixelConfig; case kBGRA_8888_SkColorType: return kBGRA_8888_GrPixelConfig; |