aboutsummaryrefslogtreecommitdiffhomepage
path: root/whitespace.txt
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-09-08 12:42:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-08 12:42:23 -0700
commite2d4eb70724475035d6148ba279f9cb1c2433564 (patch)
treee209e70ca8534cf641b1590ace19acf85cee37f3 /whitespace.txt
parent655ad128d054005ce5e55cc6f0b75a4dec07ccce (diff)
Hash .pngs instead of SkBitmaps.
This has the nice property of being able to double-check hashes after the fact. mtklein@mtklein ~/skia (hash-png)> md5sum bad/8888/3x3bitmaprect.png deede70ab2f34067d461fb4a93332d4c bad/8888/3x3bitmaprect.png mtklein@mtklein ~/skia (hash-png)> grep 3x3bitmaprect_8888 bad/dm.json "3x3bitmaprect_8888" : "deede70ab2f34067d461fb4a93332d4c", I have checked that no two premultiplied colors map to the same unpremultiplied color (math nerds: unpremultiplication is injective), so a change in premultiplied SkBitmap will always imply a change in the encoded unpremultiplied .png. This means, it's safe to hash .pngs; we won't miss subtle changes. BUG=skia: R=jcgregorio@google.com, stephana@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/549203003
Diffstat (limited to 'whitespace.txt')
0 files changed, 0 insertions, 0 deletions