encode F16Norm as rec2020
Just a debugging aid to help diffing against esrgb. Change-Id: I5e4991f598a7b00a0d903fddcf3a05a396c0536d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198221 Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
2e56f3c1aa
commit
612d5c2b70
@ -1042,7 +1042,8 @@ static bool dump_png(SkBitmap bitmap, const char* path, const char* md5) {
|
||||
// PNGs can't hold out-of-gamut values, so if we're likely to be holding them,
|
||||
// convert to a wide gamut, giving us the best chance to have the PNG look like our colors.
|
||||
SkBitmap wide;
|
||||
if (pm.colorType() >= kRGBA_F16_SkColorType) {
|
||||
if (pm.colorType() >= kRGBA_F16Norm_SkColorType) {
|
||||
// TODO: F16Norm being encoded this way is temporary, to help hunt down diffs with esrgb.
|
||||
wide.allocPixels(pm.info().makeColorSpace(rec2020()));
|
||||
SkAssertResult(wide.writePixels(pm, 0,0));
|
||||
SkAssertResult(wide.peekPixels(&pm));
|
||||
|
Loading…
Reference in New Issue
Block a user