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

Issue 18107003: Add a command line driven image decoding tool (Closed)

Created:
7 years, 5 months ago by Noel Gordon
Modified:
6 years, 9 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Add a command line driven image decoding tool Usage: image_decode_bench my-image-file.png [iterations] to decode the given image some number of times (iterations: default is 1000). Output the total and average image decode times in seconds to stdout. BUG=258324

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -0 lines) Patch
M Source/WebKit/chromium/WebKit.gyp View 1 1 chunk +17 lines, -0 lines 1 comment Download
A Source/web/ImageDecodeBench.cpp View 1 1 chunk +263 lines, -0 lines 2 comments Download

Messages

Total messages: 20 (0 generated)
Noel Gordon
7 years, 5 months ago (2013-07-10 05:33:43 UTC) #1
Noel Gordon
asked the gardener to mail troopers about the "webkit_python_tests webkit_python_tests failed" foo.
7 years, 5 months ago (2013-07-10 05:53:35 UTC) #2
Alpha Left Google
Not sure about the time function but James will probably have a better idea. https://codereview.chromium.org/18107003/diff/1/Source/WebKit/chromium/src/ImageDecodeBench.cpp ...
7 years, 5 months ago (2013-07-10 18:51:07 UTC) #3
jamesr
https://codereview.chromium.org/18107003/diff/1/Source/WebKit/chromium/src/ImageDecodeBench.cpp File Source/WebKit/chromium/src/ImageDecodeBench.cpp (right): https://codereview.chromium.org/18107003/diff/1/Source/WebKit/chromium/src/ImageDecodeBench.cpp#newcode56 Source/WebKit/chromium/src/ImageDecodeBench.cpp:56: // http://trac.webkit.org/browser/trunk/Source/WTF/wtf/CurrentTime.cpp?rev=152438 nack, just use WTF::monotonicallyIncreasingTime(). It should be ...
7 years, 5 months ago (2013-07-10 19:20:33 UTC) #4
Noel Gordon
https://codereview.chromium.org/18107003/diff/1/Source/WebKit/chromium/src/ImageDecodeBench.cpp File Source/WebKit/chromium/src/ImageDecodeBench.cpp (right): https://codereview.chromium.org/18107003/diff/1/Source/WebKit/chromium/src/ImageDecodeBench.cpp#newcode31 Source/WebKit/chromium/src/ImageDecodeBench.cpp:31: // % ninja -C out/Release image_decode_bench removed - there ...
7 years, 5 months ago (2013-07-11 03:08:59 UTC) #5
Alpha Left Google
LGTM if James is happy with the time functions.
7 years, 5 months ago (2013-07-11 19:07:32 UTC) #6
jamesr
Hmm, it's unfortunate to add this timing stuff in blink when it looks very redundant ...
7 years, 5 months ago (2013-07-11 19:14:30 UTC) #7
Alpha Left Google
On 2013/07/11 19:14:30, jamesr wrote: > Hmm, it's unfortunate to add this timing stuff in ...
7 years, 5 months ago (2013-07-11 19:19:39 UTC) #8
Noel Gordon
On 2013/07/11 19:19:39, Alpha wrote: > That's a very good suggestion I didn't think of. ...
7 years, 5 months ago (2013-07-15 08:09:03 UTC) #9
Noel Gordon
On 2013/07/11 19:14:30, jamesr wrote: > Hmm, it's unfortunate to add this timing stuff in ...
7 years, 5 months ago (2013-07-15 08:12:05 UTC) #10
jamesr
On Jul 15, 2013 1:12 AM, <noel@chromium.org> wrote: > > On 2013/07/11 19:14:30, jamesr wrote: ...
7 years, 5 months ago (2013-07-15 15:54:08 UTC) #11
Noel Gordon
On 2013/07/15 15:54:08, jamesr wrote: > > Why do that? And WebKit::WebImageDecoder doesn't handle JPEG/PNG/GIF ...
7 years, 5 months ago (2013-07-15 15:57:46 UTC) #12
jamesr
WebImage::fromData() should work for JPEG, PNG, GIF, ICO, WebP and BMP and is used in ...
7 years, 5 months ago (2013-07-16 01:10:52 UTC) #13
Noel Gordon
On 2013/07/16 01:10:52, jamesr wrote: > WebImage::fromData() should work for JPEG, PNG, GIF, ICO, WebP ...
7 years, 5 months ago (2013-07-16 06:14:48 UTC) #14
Noel Gordon
On 2013/07/16 06:14:48, Noel Gordon (Google) wrote: > For testing ICO and BMP images it ...
7 years, 5 months ago (2013-07-19 06:09:01 UTC) #15
abarth-chromium
https://codereview.chromium.org/18107003/diff/9001/Source/web/ImageDecodeBench.cpp File Source/web/ImageDecodeBench.cpp (right): https://codereview.chromium.org/18107003/diff/9001/Source/web/ImageDecodeBench.cpp#newcode218 Source/web/ImageDecodeBench.cpp:218: int main(int argc, char* argv[]) This file should probably ...
7 years, 5 months ago (2013-07-23 05:44:42 UTC) #16
abarth-chromium
https://codereview.chromium.org/18107003/diff/9001/Source/WebKit/chromium/WebKit.gyp File Source/WebKit/chromium/WebKit.gyp (right): https://codereview.chromium.org/18107003/diff/9001/Source/WebKit/chromium/WebKit.gyp#newcode533 Source/WebKit/chromium/WebKit.gyp:533: 'WEBKIT_IMPLEMENTATION=1', This isn't correct. We shouldn't have an executable ...
7 years, 5 months ago (2013-07-23 05:45:49 UTC) #17
abarth-chromium
The more I think about this CL, the more I think this target should be ...
7 years, 5 months ago (2013-07-23 06:23:21 UTC) #18
urvang (Google)
https://codereview.chromium.org/18107003/diff/9001/Source/web/ImageDecodeBench.cpp File Source/web/ImageDecodeBench.cpp (right): https://codereview.chromium.org/18107003/diff/9001/Source/web/ImageDecodeBench.cpp#newcode210 Source/web/ImageDecodeBench.cpp:210: for (int i = 0; i < frameCount; ++i) ...
7 years, 4 months ago (2013-07-29 22:38:35 UTC) #19
abarth-chromium
7 years, 4 months ago (2013-07-29 22:56:02 UTC) #20
To be more explicit, not lgtm.  I don't think Blink should contain this target,
especially not inside the API.

Powered by Google App Engine
This is Rietveld 408576698