Fix bugs in SkBmpCodec
authormsarett <msarett@google.com>
Wed, 3 Feb 2016 21:12:38 +0000 (13:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Feb 2016 21:12:38 +0000 (13:12 -0800)
commitebf440816bbb6fccbfb5ab81145c38d32f056b15
treeb06e49ece5765dece600ab563da095ed0cde14a9
parent1aeac308093892ff2ae42fa228a69260a01b92ff
Fix bugs in SkBmpCodec

The decode should not depend on the requested alpha type.

These were exposed by:
https://codereview.chromium.org/1641273003

This should cause the number of untriaged images in Gold
to go to zero.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1663303002

Review URL: https://codereview.chromium.org/1663303002
src/codec/SkBmpStandardCodec.cpp
src/codec/SkMaskSwizzler.cpp