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

Issue 1387233002: Update Subset benches to support interlacing and fix bugs (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@limitScaled
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update Subset benches to support interlacing and fix bugs Instead of decoding one line at a time, if the ScanlineOrder is kNone, decode all of the lines in one pass, and then copy the subset into the output. This will allow us to more realistically test subset decodes for interlaced png. It also makes running them not take forever. Do *not* support other modes (besides kTopDown), since they are not used by the big three we need to replace BitmapRegionDecoder implementation (skbug.com/4428). Fix a bug in SubsetTranslateBench and SubsetZoomBench: When we decode another subset, we need to reset the scanline decode first. This bug appears to have been present since the introduction of these tests in crrev.com/1160953002 BUG=skia:4205 BUG=skia:3418 Committed: https://skia.googlesource.com/skia/+/ab12c2715886e7f04c415028a7db49fb0b1e67f3

Patch Set 1 #

Total comments: 11

Patch Set 2 : Skip subset benches that will fail #

Patch Set 3 : Add asserts #

Total comments: 2

Patch Set 4 : Rebase/remove dependent patch set #

Total comments: 1

Patch Set 5 : Initialize colorCount before reading from it. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -30 lines) Patch
M bench/nanobench.cpp View 1 2 3 2 chunks +26 lines, -1 line 0 comments Download
M bench/subset/SubsetSingleBench.cpp View 1 2 1 chunk +44 lines, -9 lines 0 comments Download
M bench/subset/SubsetTranslateBench.cpp View 1 2 3 4 4 chunks +58 lines, -11 lines 4 comments Download
M bench/subset/SubsetZoomBench.cpp View 1 2 3 4 4 chunks +47 lines, -9 lines 4 comments Download

Messages

Total messages: 16 (5 generated)
scroggo
https://codereview.chromium.org/1387233002/diff/1/bench/subset/SubsetSingleBench.cpp File bench/subset/SubsetSingleBench.cpp (right): https://codereview.chromium.org/1387233002/diff/1/bench/subset/SubsetSingleBench.cpp#newcode81 bench/subset/SubsetSingleBench.cpp:81: SkAutoTDeleteArray<uint8_t> row(new uint8_t[info.minRowBytes()]); This got moved because it's not ...
5 years, 2 months ago (2015-10-06 20:36:04 UTC) #2
msarett
lgtm https://codereview.chromium.org/1387233002/diff/1/bench/subset/SubsetSingleBench.cpp File bench/subset/SubsetSingleBench.cpp (right): https://codereview.chromium.org/1387233002/diff/1/bench/subset/SubsetSingleBench.cpp#newcode81 bench/subset/SubsetSingleBench.cpp:81: SkAutoTDeleteArray<uint8_t> row(new uint8_t[info.minRowBytes()]); On 2015/10/06 20:36:04, scroggo wrote: ...
5 years, 2 months ago (2015-10-06 21:58:52 UTC) #3
scroggo
Please take a look at patch set 3. I've prevented us from running the SubsetBenches ...
5 years, 2 months ago (2015-10-07 19:50:58 UTC) #4
msarett
lgtm Wish we'd had those asserts a while ago... https://codereview.chromium.org/1387233002/diff/40001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1387233002/diff/40001/bench/nanobench.cpp#newcode521 bench/nanobench.cpp:521: ...
5 years, 2 months ago (2015-10-07 20:06:08 UTC) #5
scroggo
https://codereview.chromium.org/1387233002/diff/40001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1387233002/diff/40001/bench/nanobench.cpp#newcode521 bench/nanobench.cpp:521: return !useCodec && (path.endsWith("webp") || path.endsWith("WEBP")); On 2015/10/07 20:06:08, ...
5 years, 2 months ago (2015-10-07 20:09:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387233002/60001
5 years, 2 months ago (2015-10-07 20:11:48 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/3646)
5 years, 2 months ago (2015-10-07 20:14:21 UTC) #11
scroggo
Please take another look. The windows bot found an unitialized read, which is fixed in ...
5 years, 2 months ago (2015-10-08 18:29:08 UTC) #12
msarett
lgtm https://codereview.chromium.org/1387233002/diff/80001/bench/subset/SubsetTranslateBench.cpp File bench/subset/SubsetTranslateBench.cpp (right): https://codereview.chromium.org/1387233002/diff/80001/bench/subset/SubsetTranslateBench.cpp#newcode69 bench/subset/SubsetTranslateBench.cpp:69: int colorCount = 256; On 2015/10/08 18:29:08, scroggo ...
5 years, 2 months ago (2015-10-08 18:52:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387233002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387233002/80001
5 years, 2 months ago (2015-10-08 18:54:04 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 19:02:46 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/ab12c2715886e7f04c415028a7db49fb0b1e67f3

Powered by Google App Engine
This is Rietveld 408576698