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

Issue 1519843002: Change computeOutputColorType() to mimic old behavior (Closed)

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

Description

Change computeOutputColorType() to mimic old behavior This will prevent behavior changes in BitmapFactory when switching from SkImageDecoder to SkAndroidCodec. We will only choose kGray8 if it is explicitly requested (and also supported). Additionally, we will always decode GIFS and WBMPS to kIndex8. BUG=skia: Committed: https://skia.googlesource.com/skia/+/457f54df1e6706f560e291ab5e3b90bf0d20ded0

Patch Set 1 #

Total comments: 1

Patch Set 2 : Match old behavior for GIF and WBMP #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M src/codec/SkAndroidCodec.cpp View 1 2 chunks +14 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (5 generated)
msarett
This gets us closer to matching the old behavior of BitmapFactory, but I took a ...
5 years ago (2015-12-11 16:41:13 UTC) #2
msarett
I forgot to add a reviewer. Please read my previous comments.
5 years ago (2015-12-11 16:41:50 UTC) #4
scroggo
On 2015/12/11 16:41:13, msarett wrote: > This gets us closer to matching the old behavior ...
5 years ago (2015-12-11 17:41:36 UTC) #5
scroggo
On 2015/12/11 17:41:36, scroggo wrote: > On 2015/12/11 16:41:13, msarett wrote: > > This gets ...
5 years ago (2015-12-11 17:41:43 UTC) #6
msarett
PTAL I've added compatibility fixes for GIF and WBMP. You're right, it wasn't too tricky ...
5 years ago (2015-12-11 18:10:17 UTC) #7
scroggo
Please update the check-in comment (something like, mimic old behavior, I'm guessing). Otherwise lgtm at ...
5 years ago (2015-12-11 18:20:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519843002/20001
5 years ago (2015-12-11 18:24:06 UTC) #11
commit-bot: I haz the power
5 years ago (2015-12-11 18:37:48 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/457f54df1e6706f560e291ab5e3b90bf0d20ded0

Powered by Google App Engine
This is Rietveld 408576698