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

Issue 1406223002: Create an SkAndroidCodec API separate from SkCodec (Closed)

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

Description

Create an SkAndroidCodec API separate from SkCodec We will implement this API using SkCodecs. SkAndroidCodecs will be used to implement the BitmapRegionDecoder Java API (and possibly BitmapFactory). BUG=skia: Committed: https://skia.googlesource.com/skia/+/3d9d7a7213748761d46ade183e11aa7cb55313c1

Patch Set 1 : #

Total comments: 33

Patch Set 2 : Response to comments #

Total comments: 4

Patch Set 3 : Refactored some test code in DMSrcSink.cpp #

Total comments: 22

Patch Set 4 : Response to comments #

Total comments: 16

Patch Set 5 : Response to Patch Set 4 #

Patch Set 6 : Win bot fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+994 lines, -429 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 4 chunks +59 lines, -19 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 2 chunks +22 lines, -1 line 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 7 chunks +191 lines, -47 lines 0 comments Download
M gyp/codec.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
A include/codec/SkAndroidCodec.h View 1 1 chunk +224 lines, -0 lines 0 comments Download
M include/codec/SkCodec.h View 1 chunk +1 line, -1 line 0 comments Download
D include/codec/SkScaledCodec.h View 1 chunk +0 lines, -59 lines 0 comments Download
A src/codec/SkAndroidCodec.cpp View 1 2 3 4 1 chunk +115 lines, -0 lines 0 comments Download
M src/codec/SkBmpCodec.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkBmpRLECodec.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkCodecPriv.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M src/codec/SkCodec_libpng.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/codec/SkMaskSwizzler.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
A src/codec/SkSampledCodec.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
M src/codec/SkScaledCodec.cpp View 1 2 3 4 1 chunk +148 lines, -282 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
A src/codec/SkWebpAdapterCodec.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
A src/codec/SkWebpAdapterCodec.cpp View 1 1 chunk +46 lines, -0 lines 0 comments Download
M tests/CodexTest.cpp View 9 chunks +84 lines, -14 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (8 generated)
msarett
https://codereview.chromium.org/1406223002/diff/20001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1406223002/diff/20001/dm/DMSrcSink.cpp#newcode619 dm/DMSrcSink.cpp:619: SkImageInfo decodeInfo = codec->getInfo(); Much of this code is ...
5 years, 2 months ago (2015-10-16 18:42:16 UTC) #3
scroggo
looks on the right track to me. I'll take a deeper look on Monday, but ...
5 years, 2 months ago (2015-10-16 21:13:55 UTC) #4
msarett
https://codereview.chromium.org/1406223002/diff/20001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1406223002/diff/20001/dm/DM.cpp#newcode372 dm/DM.cpp:372: push_android_codec_src(path, mode, colorTypes[i], sampleSize); On 2015/10/16 21:13:55, scroggo wrote: ...
5 years, 2 months ago (2015-10-19 16:06:10 UTC) #6
scroggo
https://codereview.chromium.org/1406223002/diff/20001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1406223002/diff/20001/dm/DMSrcSink.cpp#newcode752 dm/DMSrcSink.cpp:752: if (nullptr == codec) { On 2015/10/19 16:06:10, msarett ...
5 years, 2 months ago (2015-10-19 20:03:20 UTC) #7
msarett
https://codereview.chromium.org/1406223002/diff/20001/src/codec/SkAndroidCodec.cpp File src/codec/SkAndroidCodec.cpp (right): https://codereview.chromium.org/1406223002/diff/20001/src/codec/SkAndroidCodec.cpp#newcode52 src/codec/SkAndroidCodec.cpp:52: if (!is_valid_sample_size(sampleSize)) { On 2015/10/19 20:03:20, scroggo wrote: > ...
5 years, 2 months ago (2015-10-19 21:39:22 UTC) #8
scroggo
lgtm https://codereview.chromium.org/1406223002/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1406223002/diff/100001/dm/DMSrcSink.cpp#newcode614 dm/DMSrcSink.cpp:614: Error AndroidCodecSrc::draw(SkCanvas* canvas) const { Any thoughts on ...
5 years, 2 months ago (2015-10-20 13:51:59 UTC) #9
msarett
Mike, can I get an API review? https://codereview.chromium.org/1406223002/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1406223002/diff/100001/dm/DMSrcSink.cpp#newcode614 dm/DMSrcSink.cpp:614: Error AndroidCodecSrc::draw(SkCanvas* ...
5 years, 2 months ago (2015-10-20 14:47:28 UTC) #10
reed1
lgtm
5 years, 2 months ago (2015-10-21 17:04:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406223002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406223002/120001
5 years, 2 months ago (2015-10-21 17:09:29 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/3800)
5 years, 2 months ago (2015-10-21 17:11:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406223002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406223002/140001
5 years, 2 months ago (2015-10-21 17:17:48 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-10-21 17:27:14 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://skia.googlesource.com/skia/+/3d9d7a7213748761d46ade183e11aa7cb55313c1

Powered by Google App Engine
This is Rietveld 408576698