Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Issue 2245453002: Fix WIC encoder to support kJPEG_Type (Closed)

Created:
4 years, 4 months ago by msarett
Modified:
4 years, 4 months ago
Reviewers:
mtklein, mtklein_C
CC:
corey.lucier, reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/36c38cbb29744e0b5390a38367e47c0c74287c2d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add gm instead of test #

Total comments: 4

Patch Set 3 : Fix gm message #

Patch Set 4 : Bug fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -31 lines) Patch
A gm/encode.cpp View 1 3 1 chunk +48 lines, -0 lines 0 comments Download
M src/images/SkForceLinking.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/ports/SkImageEncoder_WIC.cpp View 1 2 3 4 chunks +41 lines, -30 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (38 generated)
msarett
4 years, 4 months ago (2016-08-12 13:38:33 UTC) #11
msarett
4 years, 4 months ago (2016-08-12 13:39:18 UTC) #12
mtklein_C
https://codereview.chromium.org/2245453002/diff/40001/tests/EncodeTest.cpp File tests/EncodeTest.cpp (right): https://codereview.chromium.org/2245453002/diff/40001/tests/EncodeTest.cpp#newcode14 tests/EncodeTest.cpp:14: return SkTAbs((int) a - (int) b) <= 30; That's ...
4 years, 4 months ago (2016-08-15 15:11:37 UTC) #14
msarett
Changed unit test to a gm. We can inspect the encoder correctness visually. https://codereview.chromium.org/2245453002/diff/40001/tests/EncodeTest.cpp File ...
4 years, 4 months ago (2016-08-15 19:31:08 UTC) #18
mtklein
lgtm https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp File gm/encode.cpp (right): https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp#newcode39 gm/encode.cpp:39: const char text[] = "Images should look identical."; ...
4 years, 4 months ago (2016-08-15 19:50:53 UTC) #21
mtklein
https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp File gm/encode.cpp (right): https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp#newcode40 gm/encode.cpp:40: canvas->drawText(text, sizeof(text) - 1, 450.0f, 550.0f, SkPaint()); It can ...
4 years, 4 months ago (2016-08-15 19:54:12 UTC) #22
msarett
https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp File gm/encode.cpp (right): https://codereview.chromium.org/2245453002/diff/80001/gm/encode.cpp#newcode39 gm/encode.cpp:39: const char text[] = "Images should look identical."; On ...
4 years, 4 months ago (2016-08-15 19:58:28 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245453002/140001
4 years, 4 months ago (2016-08-15 20:18:25 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:140001) as https://skia.googlesource.com/skia/+/b3a7ef1fc0adc24859d2498aee54d3ec2cbcac3a
4 years, 4 months ago (2016-08-15 20:19:25 UTC) #34
msarett
A revert of this CL (patchset #3 id:140001) has been created in https://codereview.chromium.org/2246203002/ by msarett@google.com. ...
4 years, 4 months ago (2016-08-15 20:52:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245453002/180001
4 years, 4 months ago (2016-08-16 01:51:26 UTC) #48
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 01:52:21 UTC) #50
Message was sent while issue was closed.
Committed patchset #4 (id:180001) as
https://skia.googlesource.com/skia/+/36c38cbb29744e0b5390a38367e47c0c74287c2d

Powered by Google App Engine
This is Rietveld 408576698