Do not convert non gray PNG to A8.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Oct 2013 15:50:19 +0000 (15:50 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Oct 2013 15:50:19 +0000 (15:50 +0000)
commit354fd97ee00d2b604bf72132b7449b32a88dc2db
tree5887cdd74abd7ee3a74ddba6f1ce31ca245b427f
parentf614b76377cd4a273065ab01efabf9ded344eac2
Do not convert non gray PNG to A8.

If the user requested A8, but the source is not gray, switch to
ARGB8888.

BUG=https://b.corp.google.com/issue?id=9189955
R=reed@google.com

Review URL: https://codereview.chromium.org/24882002

git-svn-id: http://skia.googlecode.com/svn/trunk@11573 2bbb7eff-a529-9590-31e7-b0007b416f81
src/images/SkImageDecoder_libpng.cpp