Revert of respect sRGB when converting from sk to gr configs (patchset #1 id:1 of https://codereview.chromium.org/1756913003/ )
Reason for revert: Two major regressions from this change: - Mac images may end up too bright, if they're correctly tagged as sRGB. That's a sub-set of a much larger issue where L32 mode needs to suppress sRGB -> Linear conversion of pretty much everything. - Various low-end GPUs (Mali400 Android, iPad4) don't render in sRGB at all, causing tests to produce no output at all. Original issue's description: > 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 > > Committed: https://skia.googlesource.com/skia/+/c6663dc36b157e40c8225130f5970a346f9ba7c3 TBR=reed@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1759653005
This commit is contained in:
parent
3fc3fea2f9
commit
e79586bf82
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user