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

Issue 1322623004: Call standard libjpeg/libjpeg-turbo APIs from SkJpegCodec (Closed)

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

Description

Call standard libjpeg/libjpeg-turbo APIs BUG=skia: Committed: https://skia.googlesource.com/skia/+/fbccb5995dcda645a3a8af51805639cb0c0d2300

Patch Set 1 #

Patch Set 2 : Do not include jpeglibmangler.h #

Total comments: 3

Patch Set 3 : A better way to set the global state #

Total comments: 1

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Reformatting #

Patch Set 6 : Make sure TURBO_HAS_SKIP is actually defined #

Patch Set 7 : Need to save the state, so we can call onGetScaledDimensions before rewinding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -25 lines) Patch
M gyp/codec.gyp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 6 15 chunks +17 lines, -19 lines 0 comments Download
M src/codec/SkJpegDecoderMgr.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkJpegDecoderMgr.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkJpegUtility_codec.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkJpegUtility_codec.cpp View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (7 generated)
msarett
I originally thought it was "safer" to call the chromium_ APIs, so we could be ...
5 years, 3 months ago (2015-08-28 18:56:05 UTC) #2
msarett
https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp#newcode190 src/codec/SkJpegCodec.cpp:190: dinfo.global_state = DSTATE_READY; Applications are not "supposed" to include ...
5 years, 3 months ago (2015-08-28 19:37:14 UTC) #3
msarett
Mike had a clever idea that allows us to remove jpegint.h
5 years, 3 months ago (2015-08-28 20:16:15 UTC) #4
scroggo
https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp#newcode190 src/codec/SkJpegCodec.cpp:190: dinfo.global_state = DSTATE_READY; On 2015/08/28 19:37:14, msarett wrote: > ...
5 years, 3 months ago (2015-08-28 20:17:30 UTC) #5
mtklein
ps4 lgtm https://codereview.chromium.org/1322623004/diff/40001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1322623004/diff/40001/src/codec/SkJpegCodec.cpp#newcode545 src/codec/SkJpegCodec.cpp:545: #define jpeg_skip_scanlines(dinfo, count) \ Might want to ...
5 years, 3 months ago (2015-08-28 20:26:41 UTC) #6
scroggo
lgtm https://codereview.chromium.org/1322623004/diff/60001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1322623004/diff/60001/src/codec/SkJpegCodec.cpp#newcode189 src/codec/SkJpegCodec.cpp:189: dinfo.global_state = fDecoderMgr->dinfo()->global_state; Haha, agreed, this is much ...
5 years, 3 months ago (2015-08-28 20:31:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322623004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322623004/80001
5 years, 3 months ago (2015-08-28 20:38:08 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/2904)
5 years, 3 months ago (2015-08-28 20:40:19 UTC) #12
msarett
https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1322623004/diff/20001/src/codec/SkJpegCodec.cpp#newcode190 src/codec/SkJpegCodec.cpp:190: dinfo.global_state = DSTATE_READY; On 2015/08/28 20:17:30, scroggo wrote: > ...
5 years, 3 months ago (2015-08-28 20:42:58 UTC) #13
msarett
Crashes on windows were caused by the TURBO_HAS_SKIP flag not being defined properly. This is ...
5 years, 3 months ago (2015-08-28 21:11:55 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322623004/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322623004/110001
5 years, 3 months ago (2015-08-28 21:12:17 UTC) #16
mtklein
lgtm
5 years, 3 months ago (2015-08-28 21:16:40 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-28 21:17:29 UTC) #19
msarett
Leon can you give this another look? The version you approved didn't pass the commit ...
5 years, 3 months ago (2015-09-01 12:00:55 UTC) #20
scroggo
On 2015/09/01 12:00:55, msarett wrote: > Leon can you give this another look? > > ...
5 years, 3 months ago (2015-09-01 13:12:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322623004/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322623004/110001
5 years, 3 months ago (2015-09-01 13:37:47 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 13:43:45 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://skia.googlesource.com/skia/+/fbccb5995dcda645a3a8af51805639cb0c0d2300

Powered by Google App Engine
This is Rietveld 408576698