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

Issue 1389053002: Focus SkScaledCodec on BitmapRegionDecoder (Closed)

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

Description

Focus SkScaledCodec on BitmapRegionDecoder The primary goal of SkScaledCodec is to replace the current implementation of BitmapRegionDecoder, which depends on modified versions of libjpeg and libpng, with an implementation that uses standard versions of the libaries. Since BitmapRegionDecoder only supports PNG, WEBP and JPEG, limit SkScaledCodec to those classes. We will focus on those three until we complete this primary goal. Then we can continue to make SkScaledCodec work for other formats. Fix some bugs in SkScaledCodec::NewFromStream: - Handle a NULL input stream properly - Ensure that the input stream is deleted as expected on bad data Add tests for these error cases. BUG=skia:4428 Committed: https://skia.googlesource.com/skia/+/2c3b218f74aa0ccd544a73feb506a0be56d90abe

Patch Set 1 #

Patch Set 2 : Detach returned codec #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Disable SkScaledCodec non BRD types in CodexTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -13 lines) Patch
M src/codec/SkScaledCodec.cpp View 1 2 1 chunk +14 lines, -11 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 3 4 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
scroggo
5 years, 2 months ago (2015-10-06 17:17:56 UTC) #2
msarett
https://codereview.chromium.org/1389053002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1389053002/diff/20001/src/codec/SkScaledCodec.cpp#newcode20 src/codec/SkScaledCodec.cpp:20: switch (codec->getEncodedFormat()) { I'm opposed to this. I think ...
5 years, 2 months ago (2015-10-06 17:38:02 UTC) #3
scroggo
https://codereview.chromium.org/1389053002/diff/20001/src/codec/SkScaledCodec.cpp File src/codec/SkScaledCodec.cpp (right): https://codereview.chromium.org/1389053002/diff/20001/src/codec/SkScaledCodec.cpp#newcode20 src/codec/SkScaledCodec.cpp:20: switch (codec->getEncodedFormat()) { On 2015/10/06 17:38:02, msarett wrote: > ...
5 years, 2 months ago (2015-10-06 17:52:41 UTC) #4
msarett
lgtm
5 years, 2 months ago (2015-10-06 18:24:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389053002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389053002/20001
5 years, 2 months ago (2015-10-09 15:13:02 UTC) #7
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/3549)
5 years, 2 months ago (2015-10-09 15:15:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389053002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389053002/80001
5 years, 2 months ago (2015-10-09 15:34:23 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 15:41:04 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://skia.googlesource.com/skia/+/2c3b218f74aa0ccd544a73feb506a0be56d90abe

Powered by Google App Engine
This is Rietveld 408576698