aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-07-09 10:45:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-09 15:21:16 +0000
commit9c7f7f22d2e04bcb141ab433c3fdc5b7bfdfb378 (patch)
tree1e4d68fc1ea6879106b1bc3236c5da24799b4dce
parent1354048c8fa885b83e414532c011d710590d6b46 (diff)
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>
-rw-r--r--dm/DM.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 4656381c13..b8714d3fd9 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -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);
}