summaryrefslogtreecommitdiffstats
path: root/o3d/build
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 21:24:02 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 21:24:02 +0000
commit0f6bd72df6b38ef02909934aab3504f92913fb4b (patch)
tree18ff077ab4256c0e7fe66d2848f001a5460d3229 /o3d/build
parent5ed64d5f85cc2d2381748116374967f0cf5042d2 (diff)
downloadchromium_src-0f6bd72df6b38ef02909934aab3504f92913fb4b.zip
chromium_src-0f6bd72df6b38ef02909934aab3504f92913fb4b.tar.gz
chromium_src-0f6bd72df6b38ef02909934aab3504f92913fb4b.tar.bz2
A clear screen GLES2 demo.
I'm not sure if I should check the demo in or not. I expect it will be moved or deleted but I'd like to get it in. This demo currently only runs on Windows because of a few setup issues. All it does is clear the screen purple then yellow. It shows a tiny C segment including only gl2.h and calling a GL function. Also a tiny C++ segment including only gl2.h and calling a GL function. The setup code is currently in the gles2_demo.cc. I'd like to move to gles2_lib.cc but it needs to be NaCl specific for that since that's the use case for generic setup. WebGL and unit tests will have to do custom setup I think. Also, I found out glGetAttribLocation and glGetUniformLocation were not implemented. For now I mostly subbed them out. The quickest solution was to add class GetGLcharHandler to the code generator but my next step will be to delete class GetGLcharHandler and GLcharHandler given that they only represent 3 functions total that code should be written manually. Review URL: http://codereview.chromium.org/399108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/build')
-rw-r--r--o3d/build/o3d_all.gyp7
1 files changed, 7 insertions, 0 deletions
diff --git a/o3d/build/o3d_all.gyp b/o3d/build/o3d_all.gyp
index b55d97b..d2ab921 100644
--- a/o3d/build/o3d_all.gyp
+++ b/o3d/build/o3d_all.gyp
@@ -54,6 +54,13 @@
],
},
],
+ ['renderer=="cb" and cb_service=="gl"',
+ {
+ 'dependencies': [
+ '../gpu/gpu.gyp:gles2_demo',
+ ],
+ },
+ ],
],
},
],