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

Issue 1513023002: Make BitmapRegionDecoder succeed on invalid requests (Closed)

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

Description

Make BitmapRegionDecoder succeed on invalid requests If the client requests a color type or alpha type that is not supported, we should decode to the default/appropriate color and alpha types to match existing behavior in Android. BUG=skia: Committed: https://skia.googlesource.com/skia/+/9a0e3467da2a61ec81f676c147c21c77de91fccf

Patch Set 1 #

Total comments: 4

Patch Set 2 : Response to comments #

Patch Set 3 : Default to the suggested color type instead of kN32 #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -9 lines) Patch
M include/codec/SkAndroidCodec.h View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M src/android/SkBitmapRegionCanvas.h View 1 1 chunk +10 lines, -2 lines 0 comments Download
M src/android/SkBitmapRegionCanvas.cpp View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/android/SkBitmapRegionCodec.cpp View 1 2 3 3 chunks +10 lines, -5 lines 0 comments Download
M src/codec/SkAndroidCodec.cpp View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (9 generated)
msarett
In this implementation I added functions to SkAndroidCodec. This is useful because I could then ...
5 years ago (2015-12-09 19:51:04 UTC) #2
scroggo
On 2015/12/09 19:51:04, msarett wrote: > In this implementation I added functions to SkAndroidCodec. > ...
5 years ago (2015-12-09 20:57:31 UTC) #4
msarett
On 2015/12/09 20:57:31, scroggo wrote: > On 2015/12/09 19:51:04, msarett wrote: > > In this ...
5 years ago (2015-12-10 15:18:34 UTC) #7
msarett
On 2015/12/09 20:57:31, scroggo wrote: > On 2015/12/09 19:51:04, msarett wrote: > > In this ...
5 years ago (2015-12-10 15:19:26 UTC) #8
scroggo
lgtm
5 years ago (2015-12-10 15:40:55 UTC) #9
msarett
Derek can you take a look at the API? Adding these functions to SkAndroidCodec allows ...
5 years ago (2015-12-10 15:43:44 UTC) #11
msarett
PTAL
5 years ago (2015-12-10 20:49:10 UTC) #12
msarett
Hang on this is still buggy...
5 years ago (2015-12-10 20:50:25 UTC) #13
djsollen
https://codereview.chromium.org/1513023002/diff/80001/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1513023002/diff/80001/include/codec/SkAndroidCodec.h#newcode61 include/codec/SkAndroidCodec.h:61: SkColorType fixRequestedColorType(SkColorType requestedColorType); this seems like an odd name ...
5 years ago (2015-12-10 21:06:45 UTC) #14
msarett
I've changed the API to computeOutput*Type() and fixed computeOutputColorType() to behave consistently with the expectations ...
5 years ago (2015-12-10 22:41:55 UTC) #15
djsollen
lgtm api lgtm with a nit https://codereview.chromium.org/1513023002/diff/100001/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1513023002/diff/100001/include/codec/SkAndroidCodec.h#newcode56 include/codec/SkAndroidCodec.h:56: * @param requestedColorType ...
5 years ago (2015-12-11 13:49:26 UTC) #16
msarett
https://codereview.chromium.org/1513023002/diff/100001/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1513023002/diff/100001/include/codec/SkAndroidCodec.h#newcode56 include/codec/SkAndroidCodec.h:56: * @param requestedColorType Color type requested by the client ...
5 years ago (2015-12-11 14:17:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1513023002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1513023002/140001
5 years ago (2015-12-11 15:23:03 UTC) #21
commit-bot: I haz the power
5 years ago (2015-12-11 15:38:54 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://skia.googlesource.com/skia/+/9a0e3467da2a61ec81f676c147c21c77de91fccf

Powered by Google App Engine
This is Rietveld 408576698