diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-06 20:24:21 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-06 20:24:21 +0000 |
commit | 69a0d7a3356823f979d890ced848b708e08ad927 (patch) | |
tree | 8edd9b804a160da12b845fee929300af9acec14b /expectations/gm/Test-Android-Xoom-Tegra2-Arm7-Release | |
parent | 8f88117940ebb0a7f514194a4ad3384073c1f145 (diff) |
DM: fix failures when using -r by comparing unpremultiplied.
PNGs store unpremultiplied colors, so we have to convert back and forth with
SkBitmap. This is lossy. GM solves this problem by stripping the alpha
channel before writing the PNG.
This flips it around, converting the GM's output to unpremultiplied as needed. This way each pixel goes from premul to unpremul once, never back.
Tested:
out/Release/dm -w /tmp/w --config 565 8888 gpu
out/Release/dm -r /tmp/w --config 565 8888 gpu
BUG=
R=bsalomon@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/122923003
git-svn-id: http://skia.googlecode.com/svn/trunk@12926 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'expectations/gm/Test-Android-Xoom-Tegra2-Arm7-Release')
0 files changed, 0 insertions, 0 deletions