***Disables swizzles to 565.
authormsarett <msarett@google.com>
Thu, 9 Apr 2015 19:43:10 +0000 (12:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Apr 2015 19:43:10 +0000 (12:43 -0700)
commit438b2adefb9e9213e0ddaf0609405d3087a1cf0a
tree34b6c116c074d5f24f8e37a45db0e8404de8d83f
parent16b254a200f63e85041cac9a283ff0ff14d94ba1
***Disables swizzles to 565.
We may want to enable swizzles to 565
for images that are encoded in a format
similar to 565, however, we do not want
to take images that decode naturally to
kN32 and then convert them to 565.

***Enable swizzles to kIndex_8.  For images
encoded in a color table format, we suggest
that they be decoded to kIndex_8.  When we
decode, we only allow conversion to kIndex_8
if it matches the suggested color type (except
wbmp which seems good as is).

***Modify dm to test images that decode to
kIndex_8.

BUG=skia:3257
BUG=skia:3440

Review URL: https://codereview.chromium.org/1055743003
15 files changed:
dm/DM.cpp
dm/DMSrcSink.cpp
dm/DMSrcSink.h
gyp/tests.gypi
src/codec/SkCodec_libbmp.cpp
src/codec/SkCodec_libbmp.h
src/codec/SkCodec_libgif.cpp
src/codec/SkCodec_libgif.h
src/codec/SkCodec_libpng.cpp
src/codec/SkCodec_libpng.h
src/codec/SkMaskSwizzler.cpp
src/codec/SkSwizzler.cpp
src/codec/SkSwizzler.h
tests/CodexTest.cpp
tests/SwizzlerTest.cpp [new file with mode: 0644]