Reland "Respect full precision for RGB16 PNGs" (part 3)
authorMatt Sarett <msarett@google.com>
Thu, 19 Jan 2017 22:42:23 +0000 (17:42 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 20 Jan 2017 02:21:25 +0000 (02:21 +0000)
commit34c69d63477c8992d3242c02899008810e04af6e
treeb59dc0c959610b67a5e4ed5f085714a88658edd1
parent1da27ef853ae3e701b7f4aae670c21684396dcce
Reland "Respect full precision for RGB16 PNGs" (part 3)

This lands the rest of the original CL.
It fixes some flawed logic in SkSwizzler handling Gray8
images.

Original CL:
https://skia-review.googlesource.com/c/7085/

BUG=skia:

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN,Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD,Build-Ubuntu-Clang-x86_64-Release-Fast

Change-Id: Ie2f0c545ea474f1872f284dfb286987b6eadf03d
Reviewed-on: https://skia-review.googlesource.com/7320
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
src/codec/SkPngCodec.cpp
src/codec/SkSwizzler.cpp