Fix WIC encoder to support kJPEG_Type
authormsarett <msarett@google.com>
Tue, 16 Aug 2016 01:52:17 +0000 (18:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Aug 2016 01:52:17 +0000 (18:52 -0700)
commit36c38cbb29744e0b5390a38367e47c0c74287c2d
tree4a29a1b61e8ebbdd8e7bfb999636e6e4497a7bd5
parent4ed2f01cf6f3a63d5185ea5b442549d20ce2ec16
Fix WIC encoder to support kJPEG_Type

(1) Add support for kJPEG to WIC
(2) Add encoding test.
(3) Turn on WIC jpeg encoder on Windows and CG jpeg
    encoder on Mac.

A follow-up may make Skia's encoders the default on all
platforms.  But, in order to do that, I think we need
to write better encoding unit tests for CG and WIC.

BUG=skia:3969
BUG=skia:5632
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2245453002

Committed: https://skia.googlesource.com/skia/+/b3a7ef1fc0adc24859d2498aee54d3ec2cbcac3a
Review-Url: https://codereview.chromium.org/2245453002
gm/encode.cpp [new file with mode: 0644]
src/images/SkForceLinking.cpp
src/ports/SkImageEncoder_WIC.cpp