Support color xforms for kIndex8 pngs
authormsarett <msarett@google.com>
Mon, 22 Aug 2016 15:48:40 +0000 (08:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Aug 2016 15:48:40 +0000 (08:48 -0700)
commitdcd5e65340f9ef239d769bf20bafd2fa819eab31
tree5597db8cdd3183f6ea8e9acb090887a90ba0f174
parentc0c6e1c5d133c51cc75ed9d5770fdc5448d8c324
Support color xforms for kIndex8 pngs

This change started as: "Always use color xforms to
premultiply".  We need to be in a linear space to
premultiply correctly.

It became clear that we also need to support kIndex8
color xforms in order to make this change.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2246143002

Review-Url: https://codereview.chromium.org/2246143002
src/codec/SkCodecImageGenerator.cpp
src/codec/SkCodecPriv.h
src/codec/SkPngCodec.cpp
src/codec/SkPngCodec.h