Always unpremul nonlinearly before writing PNGs in DM
Makes gl and glsrgb agree on several more GMs. Bug: skia: Change-Id: I6c233742c188e4f29212f0e9e1281a214457d458 Reviewed-on: https://skia-review.googlesource.com/139765 Auto-Submit: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
1354048c8f
commit
9c7f7f22d2
@ -1035,8 +1035,7 @@ static bool dump_png(SkBitmap bitmap, const char* path, const char* md5) {
|
||||
options.fComments = SkDataTable::MakeCopyArrays((const void**)comments, lengths, 4);
|
||||
options.fFilterFlags = SkPngEncoder::FilterFlag::kNone;
|
||||
options.fZLibLevel = 1;
|
||||
options.fUnpremulBehavior = pm.colorSpace() ? SkTransferFunctionBehavior::kRespect
|
||||
: SkTransferFunctionBehavior::kIgnore;
|
||||
options.fUnpremulBehavior = SkTransferFunctionBehavior::kIgnore;
|
||||
return SkPngEncoder::Encode(&dst, pm, options);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user