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

Issue 1344993003: Add nanobench tests for BitmapRegionDecoder (Closed)

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

Description

Add nanobench tests for BitmapRegionDecoder SkBitmapRegionDecoderInterface provides an interface for multiple implementations of Android's BitmapRegionDecoder. We already have correctness tests in DM that will enable us to compare the quality of our various BRD implementations. We also need these performance tests to compare the speed of our various implementations. BUG=skia:4357 Committed: https://skia.googlesource.com/skia/+/7f69144aaabbedf51ad2a1feddc9e0689f2c5ee9

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Move buildTileIndex to onPreDraw #

Total comments: 4

Patch Set 3 : Benchmarks for more real use cases #

Total comments: 15

Patch Set 4 : Test on a few more scales #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -61 lines) Patch
A bench/BitmapRegionDecoderBench.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A bench/BitmapRegionDecoderBench.cpp View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M bench/CodecBench.cpp View 1 2 3 2 chunks +2 lines, -15 lines 0 comments Download
A bench/CodecBenchPriv.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M bench/DecodingBench.cpp View 1 2 3 2 chunks +2 lines, -15 lines 0 comments Download
M bench/nanobench.cpp View 1 2 3 4 9 chunks +136 lines, -4 lines 0 comments Download
M bench/subset/SubsetBenchPriv.h View 1 1 chunk +0 lines, -20 lines 0 comments Download
M bench/subset/SubsetSingleBench.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M bench/subset/SubsetTranslateBench.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M bench/subset/SubsetZoomBench.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M dm/DM.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M dm/DMSrcSink.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M gyp/bench.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/visualbench.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A tools/SkCodecTools.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (6 generated)
msarett
5 years, 3 months ago (2015-09-17 17:07:26 UTC) #3
scroggo
https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp File bench/BitmapRegionDecoderBench.cpp (right): https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp#newcode44 bench/BitmapRegionDecoderBench.cpp:44: case kN32_SkColorType: This switch statement shows up a lot. ...
5 years, 3 months ago (2015-09-17 20:05:38 UTC) #4
msarett
https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp File bench/BitmapRegionDecoderBench.cpp (right): https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp#newcode44 bench/BitmapRegionDecoderBench.cpp:44: case kN32_SkColorType: On 2015/09/17 20:05:38, scroggo wrote: > This ...
5 years, 3 months ago (2015-09-18 13:22:30 UTC) #5
mtklein
https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp File bench/BitmapRegionDecoderBench.cpp (right): https://codereview.chromium.org/1344993003/diff/20001/bench/BitmapRegionDecoderBench.cpp#newcode44 bench/BitmapRegionDecoderBench.cpp:44: case kN32_SkColorType: > I tried this again when I ...
5 years, 3 months ago (2015-09-18 13:26:51 UTC) #6
scroggo
https://codereview.chromium.org/1344993003/diff/20001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1344993003/diff/20001/bench/nanobench.cpp#newcode580 bench/nanobench.cpp:580: // We can set the subset rect here, since ...
5 years, 3 months ago (2015-09-18 15:07:23 UTC) #7
msarett
No new code here - just wanted to respond to the comments. Thanks for your ...
5 years, 3 months ago (2015-09-18 17:41:17 UTC) #8
msarett
This version tests our use cases much more comprehensively. I expect this test to put ...
5 years, 3 months ago (2015-09-18 21:37:20 UTC) #9
scroggo
https://codereview.chromium.org/1344993003/diff/60001/bench/BitmapRegionDecoderBench.cpp File bench/BitmapRegionDecoderBench.cpp (right): https://codereview.chromium.org/1344993003/diff/60001/bench/BitmapRegionDecoderBench.cpp#newcode43 bench/BitmapRegionDecoderBench.cpp:43: fName.printf("BRD_%s_%s_%s", baseName, strategyName, colorName); nit: You could do this ...
5 years, 3 months ago (2015-09-22 12:13:09 UTC) #10
msarett
https://codereview.chromium.org/1344993003/diff/60001/bench/BitmapRegionDecoderBench.cpp File bench/BitmapRegionDecoderBench.cpp (right): https://codereview.chromium.org/1344993003/diff/60001/bench/BitmapRegionDecoderBench.cpp#newcode43 bench/BitmapRegionDecoderBench.cpp:43: fName.printf("BRD_%s_%s_%s", baseName, strategyName, colorName); On 2015/09/22 12:13:08, scroggo wrote: ...
5 years, 3 months ago (2015-09-22 15:27:19 UTC) #11
scroggo
lgtm with some nits https://codereview.chromium.org/1344993003/diff/60001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1344993003/diff/60001/bench/nanobench.cpp#newcode927 bench/nanobench.cpp:927: // in the image. Additionally, ...
5 years, 3 months ago (2015-09-22 16:57:35 UTC) #12
msarett
https://codereview.chromium.org/1344993003/diff/60001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1344993003/diff/60001/bench/nanobench.cpp#newcode927 bench/nanobench.cpp:927: // in the image. Additionally, power of two scaling ...
5 years, 3 months ago (2015-09-22 17:53:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1344993003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1344993003/100001
5 years, 3 months ago (2015-09-22 17:54:32 UTC) #16
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/3311)
5 years, 3 months ago (2015-09-22 17:57:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1344993003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1344993003/100001
5 years, 3 months ago (2015-09-22 18:46:30 UTC) #20
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 18:56:19 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://skia.googlesource.com/skia/+/7f69144aaabbedf51ad2a1feddc9e0689f2c5ee9

Powered by Google App Engine
This is Rietveld 408576698