From: reed Date: Thu, 3 Mar 2016 16:03:20 +0000 (-0800) Subject: respect sRGB when converting from sk to gr configs X-Git-Tag: submit/tizen/20180928.044319~129^2~1672 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6663dc36b157e40c8225130f5970a346f9ba7c3;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- 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;