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

Issue 1213983003: Fix CodecSubset benches seg faults for kIndex8 (Closed)

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

Description

Fix CodecSubset benches seg faults for kIndex8 All of the CodecSubset benches fail when the color type is kIndex8. We need to pass a color table to allocPixels() when we want to decode to kIndex8 or it will throw a failure. BUG=skia: Committed: https://skia.googlesource.com/skia/+/7f6283bdf8926f72b886389588e3e2d3bc0ea066

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M bench/subset/SubsetBenchPriv.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M bench/subset/SubsetSingleBench.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M bench/subset/SubsetTranslateBench.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M bench/subset/SubsetZoomBench.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (4 generated)
msarett
Thanks for catching this Emmalee! This should fix it. Patch Set 1 is also a ...
5 years, 5 months ago (2015-06-30 16:01:18 UTC) #1
msarett
Adding reviewers
5 years, 5 months ago (2015-06-30 16:02:11 UTC) #3
scroggo
> Fix subset decoding bench bug for Index8 decodes nit: can you update the description ...
5 years, 5 months ago (2015-06-30 16:40:19 UTC) #4
msarett
Sharing code in SubsetBenchPriv No longer leaking SkColorTable https://codereview.chromium.org/1213983003/diff/1/bench/subset/SubsetTranslateBench.cpp File bench/subset/SubsetTranslateBench.cpp (right): https://codereview.chromium.org/1213983003/diff/1/bench/subset/SubsetTranslateBench.cpp#newcode58 bench/subset/SubsetTranslateBench.cpp:58: int ...
5 years, 5 months ago (2015-06-30 18:40:28 UTC) #6
scroggo
> All of the CodecSubset benches fail when the color type is > kIndex8. We ...
5 years, 5 months ago (2015-06-30 18:48:51 UTC) #7
msarett
https://codereview.chromium.org/1213983003/diff/60001/bench/subset/SubsetBenchPriv.h File bench/subset/SubsetBenchPriv.h (right): https://codereview.chromium.org/1213983003/diff/60001/bench/subset/SubsetBenchPriv.h#newcode35 bench/subset/SubsetBenchPriv.h:35: static inline void alloc_pixels(SkBitmap bitmap, SkColorType colorType, int width, ...
5 years, 5 months ago (2015-06-30 19:06:38 UTC) #8
scroggo
https://codereview.chromium.org/1213983003/diff/80001/bench/subset/SubsetBenchPriv.h File bench/subset/SubsetBenchPriv.h (right): https://codereview.chromium.org/1213983003/diff/80001/bench/subset/SubsetBenchPriv.h#newcode37 bench/subset/SubsetBenchPriv.h:37: if (kIndex_8_SkColorType == colorType) { Does colorType need to ...
5 years, 5 months ago (2015-06-30 19:12:00 UTC) #9
msarett
https://codereview.chromium.org/1213983003/diff/80001/bench/subset/SubsetBenchPriv.h File bench/subset/SubsetBenchPriv.h (right): https://codereview.chromium.org/1213983003/diff/80001/bench/subset/SubsetBenchPriv.h#newcode37 bench/subset/SubsetBenchPriv.h:37: if (kIndex_8_SkColorType == colorType) { On 2015/06/30 19:12:00, scroggo ...
5 years, 5 months ago (2015-06-30 19:36:00 UTC) #10
scroggo
lgtm https://codereview.chromium.org/1213983003/diff/100001/bench/subset/SubsetBenchPriv.h File bench/subset/SubsetBenchPriv.h (right): https://codereview.chromium.org/1213983003/diff/100001/bench/subset/SubsetBenchPriv.h#newcode35 bench/subset/SubsetBenchPriv.h:35: static inline void alloc_pixels(SkBitmap* bitmap, const SkImageInfo& info, ...
5 years, 5 months ago (2015-06-30 19:37:55 UTC) #11
msarett
https://codereview.chromium.org/1213983003/diff/100001/bench/subset/SubsetBenchPriv.h File bench/subset/SubsetBenchPriv.h (right): https://codereview.chromium.org/1213983003/diff/100001/bench/subset/SubsetBenchPriv.h#newcode35 bench/subset/SubsetBenchPriv.h:35: static inline void alloc_pixels(SkBitmap* bitmap, const SkImageInfo& info, SkPMColor* ...
5 years, 5 months ago (2015-06-30 20:21:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1213983003/110001
5 years, 5 months ago (2015-06-30 20:22:19 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 20:29:40 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:110001) as
https://skia.googlesource.com/skia/+/7f6283bdf8926f72b886389588e3e2d3bc0ea066

Powered by Google App Engine
This is Rietveld 408576698