summaryrefslogtreecommitdiffstats
path: root/media/media.gyp
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-01 19:31:52 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-01 19:31:52 +0000
commit7b923c6547a3619e4f0727d98e4b882c4d06eb77 (patch)
tree14fa82f6fe8a55659ec1befd1832062a3a05144e /media/media.gyp
parent92ccbddc2fff4fe5afd5b7552f419adfa9d3b877 (diff)
downloadchromium_src-7b923c6547a3619e4f0727d98e4b882c4d06eb77.zip
chromium_src-7b923c6547a3619e4f0727d98e4b882c4d06eb77.tar.gz
chromium_src-7b923c6547a3619e4f0727d98e4b882c4d06eb77.tar.bz2
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 Review URL: http://codereview.chromium.org/4873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67887 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/media.gyp')
-rw-r--r--media/media.gyp46
1 files changed, 46 insertions, 0 deletions
diff --git a/media/media.gyp b/media/media.gyp
index 110bf92..bbd418d 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -465,6 +465,52 @@
},
],
}],
+ ['OS!="mac"', {
+ 'targets': [
+ {
+ 'target_name': 'shader_bench',
+ 'type': 'executable',
+ 'dependencies': [
+ 'media',
+ '../app/app.gyp:app_base',
+ ],
+ 'sources': [
+ 'tools/shader_bench/shader_bench.cc',
+ 'tools/shader_bench/cpu_color_painter.cc',
+ 'tools/shader_bench/cpu_color_painter.h',
+ 'tools/shader_bench/gpu_color_painter.cc',
+ 'tools/shader_bench/gpu_color_painter.h',
+ 'tools/shader_bench/gpu_color_painter_exp.cc',
+ 'tools/shader_bench/gpu_color_painter_exp.h',
+ 'tools/shader_bench/gpu_painter.cc',
+ 'tools/shader_bench/gpu_painter.h',
+ 'tools/shader_bench/painter.cc',
+ 'tools/shader_bench/painter.h',
+ 'tools/shader_bench/window.cc',
+ 'tools/shader_bench/window.h',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ ],
+ 'sources': [
+ 'tools/shader_bench/window_linux.cc',
+ ],
+ }],
+ ['OS=="win"', {
+ 'dependencies': [
+ '../third_party/angle/src/build_angle.gyp:libEGL',
+ '../third_party/angle/src/build_angle.gyp:libGLESv2',
+ ],
+ 'sources': [
+ 'tools/shader_bench/window_win.cc',
+ ],
+ }],
+ ],
+ },
+ ],
+ }],
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
'targets': [
{