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

Issue 4873002: Benchmark tool for GPU-accelerated video rendering (Closed)

Created:
10 years, 1 month ago by vrk (LEFT CHROMIUM)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, awong, scherkus (not reviewing), fbarchard, ddorwin+watch_chromium.org, acolwell GONE FROM CHROMIUM, annacc, vrk (LEFT CHROMIUM), Alpha Left Google
Visibility:
Public.

Description

Benchmark tool for GPU-accelerated video rendering This is a benchmarking program that times how fast a shader can color-convert and render video frames to the screen. The program takes a file with raw YUV frames, the number of frames in the file, and the dimensions of the video file as parameters and outputs the max frames per second obtained when rendering the video using various painting/shading techniques. BUG=48633 TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67887

Patch Set 1 #

Patch Set 2 : Cleaned up Window/Painter interface a little #

Total comments: 17

Patch Set 3 : Added more shaders, used message loop, and cleaned up code #

Total comments: 21

Patch Set 4 : Modifications from code review #

Total comments: 14

Patch Set 5 : Fixes based on code review #

Total comments: 34

Patch Set 6 : Style fixes, added comments to headers #

Total comments: 34

Patch Set 7 : Fixed media.gyp #

Total comments: 22

Patch Set 8 : Style fixes and gyp fix for mac #

Total comments: 4

Patch Set 9 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1153 lines, -0 lines) Patch
M media/media.gyp View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A media/tools/shader_bench/cpu_color_painter.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A media/tools/shader_bench/cpu_color_painter.cc View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_color_painter.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_color_painter.cc View 1 2 3 4 5 6 7 1 chunk +117 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_color_painter_exp.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_color_painter_exp.cc View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_painter.h View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A media/tools/shader_bench/gpu_painter.cc View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A media/tools/shader_bench/painter.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A media/tools/shader_bench/painter.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A media/tools/shader_bench/shader_bench.cc View 1 2 3 4 5 6 7 1 chunk +163 lines, -0 lines 0 comments Download
A media/tools/shader_bench/window.h View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A media/tools/shader_bench/window.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A media/tools/shader_bench/window_linux.cc View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A media/tools/shader_bench/window_win.cc View 1 2 3 4 5 6 7 1 chunk +139 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
vrk (LEFT CHROMIUM)
Not finished yet, but wanted to upload what I have so far before the changelist ...
10 years, 1 month ago (2010-11-12 05:42:37 UTC) #1
scherkus (not reviewing)
looking great so far! let me know if you want style reviews + tips etc... ...
10 years, 1 month ago (2010-11-12 07:45:53 UTC) #2
fbarchard
http://codereview.chromium.org/4873002/diff/2001/media/tools/shader_bench/gl_painter.cc File media/tools/shader_bench/gl_painter.cc (right): http://codereview.chromium.org/4873002/diff/2001/media/tools/shader_bench/gl_painter.cc#newcode111 media/tools/shader_bench/gl_painter.cc:111: glBindTexture(GL_TEXTURE_2D, textures_[i]); glBindTexture is slow. It will cause the ...
10 years, 1 month ago (2010-11-12 17:49:16 UTC) #3
Alpha Left Google
Good job getting things onto the screen! However there should be a message loop somewhere ...
10 years, 1 month ago (2010-11-15 20:43:50 UTC) #4
vrk (LEFT CHROMIUM)
OK, I just uploaded a new patch that reflects the latest version of the benchmarking ...
10 years, 1 month ago (2010-11-19 01:15:30 UTC) #5
Alpha Left Google
Please merge with ToT, I can see some merge problems in this patch. It looks ...
10 years, 1 month ago (2010-11-19 23:33:50 UTC) #6
vrk (LEFT CHROMIUM)
Thanks for the review! Let me know if the changes are okay. Also, I tried ...
10 years, 1 month ago (2010-11-24 22:01:30 UTC) #7
tfarina
Some minor comments below. http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h File media/tools/shader_bench/window.h (right): http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h#newcode15 media/tools/shader_bench/window.h:15: class Window { This implementation ...
10 years ago (2010-11-26 15:38:16 UTC) #8
vrk (LEFT CHROMIUM)
http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h File media/tools/shader_bench/window.h (right): http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h#newcode15 media/tools/shader_bench/window.h:15: class Window { On 2010/11/26 15:38:16, tfarina wrote: > ...
10 years ago (2010-11-29 18:14:41 UTC) #9
tfarina
http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h File media/tools/shader_bench/window.h (right): http://codereview.chromium.org/4873002/diff/27001/media/tools/shader_bench/window.h#newcode15 media/tools/shader_bench/window.h:15: class Window { On 2010/11/29 18:14:41, Victoria Kirst wrote: ...
10 years ago (2010-11-29 18:28:36 UTC) #10
Alpha Left Google
Another pass for style fix. http://codereview.chromium.org/4873002/diff/33001/media/media.gyp File media/media.gyp (left): http://codereview.chromium.org/4873002/diff/33001/media/media.gyp#oldcode83 media/media.gyp:83: 'base/media_filter_collection.cc', This file is ...
10 years ago (2010-11-29 20:06:13 UTC) #11
vrk (LEFT CHROMIUM)
Thanks for all the feedback! Dah, I keep mixing up WebKit and Chromium style! Hopefully ...
10 years ago (2010-11-30 01:21:34 UTC) #12
vrk (LEFT CHROMIUM)
On 2010/11/29 18:28:36, tfarina wrote: > That is what I was suggesting, it was more ...
10 years ago (2010-11-30 01:22:59 UTC) #13
Alpha Left Google
LGTM.
10 years ago (2010-11-30 01:47:27 UTC) #14
tfarina
My nits LGTM.
10 years ago (2010-11-30 12:51:11 UTC) #15
scherkus (not reviewing)
bunch of nits also I think you uploaded another patch halfway through the review so ...
10 years ago (2010-11-30 23:36:09 UTC) #16
vrk (LEFT CHROMIUM)
Thanks Andrew! Fixed everything and reuploaded. Also, forgot that I didn't write an implementation for ...
10 years ago (2010-12-01 02:46:11 UTC) #17
scherkus (not reviewing)
LGTM w/ nits awesome work!!!!!!! http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/gpu_painter.h File media/tools/shader_bench/gpu_painter.h (right): http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/gpu_painter.h#newcode15 media/tools/shader_bench/gpu_painter.h:15: nit: no blank line ...
10 years ago (2010-12-01 05:28:47 UTC) #18
vrk (LEFT CHROMIUM)
10 years ago (2010-12-01 18:05:53 UTC) #19
Thanks everyone! Will try to land the patch today!

http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/gp...
File media/tools/shader_bench/gpu_painter.h (right):

http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/gp...
media/tools/shader_bench/gpu_painter.h:15: 
On 2010/12/01 05:28:47, scherkus wrote:
> nit: no blank line

Done.

http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/pa...
File media/tools/shader_bench/painter.h (right):

http://codereview.chromium.org/4873002/diff/72001/media/tools/shader_bench/pa...
media/tools/shader_bench/painter.h:34:
std::deque<scoped_refptr<media::VideoFrame> >* frames_;
On 2010/12/01 05:28:47, scherkus wrote:
> looks like this doesn't need to be protected either (none of the subclasses
> appear to access it)

Done.

Powered by Google App Engine
This is Rietveld 408576698