summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 00:11:31 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 00:11:31 +0000
commit45bf51517d9281be03680c5f99ae04657a7a8c19 (patch)
treeb95d9846485a10971c9a98f374a0eacd997bba43 /gpu/command_buffer/build_gles2_cmd_buffer.py
parent9a1cd5f0fd0c97db72a702e7323b6e0080b823f8 (diff)
downloadchromium_src-45bf51517d9281be03680c5f99ae04657a7a8c19.zip
chromium_src-45bf51517d9281be03680c5f99ae04657a7a8c19.tar.gz
chromium_src-45bf51517d9281be03680c5f99ae04657a7a8c19.tar.bz2
Reimplemented glShaderSource in preparation for shader
compiler to make GLSL shaders DesktopGL complient. Shader source is now saved by the decoder because when glGetShaderSource is called we must return the source that was passed, not the munged source. TEST=none BUG=none Review URL: http://codereview.chromium.org/594037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 5ca1243..6809aaf 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -834,6 +834,7 @@ _ENUM_LISTS = {
# needs_size: If true a data_size field is added to the command.
# data_type: The type of data the command uses. For PUTn or PUT types.
# count: The number of units per element. For PUTn or PUT types.
+# unit_test: If False no unit test will be generated.
_FUNCTION_INFO = {
'BindAttribLocation': {'type': 'GLchar'},
@@ -844,6 +845,7 @@ _FUNCTION_INFO = {
'BufferSubData': {'type': 'Data'},
'CheckFramebufferStatus': {'DecoderFunc': 'glCheckFramebufferStatusEXT'},
'ClearDepthf': {'DecoderFunc': 'glClearDepth'},
+ 'CompileShader': {'DecoderFunc': 'DoCompileShader', 'unit_test': False},
'CompressedTexImage2D': {'type': 'Manual','immediate': True},
'CompressedTexSubImage2D': {'type': 'Data'},
'CreateProgram': {'type': 'Create'},
@@ -944,7 +946,7 @@ _FUNCTION_INFO = {
'int32 precision',
],
},
- 'GetShaderSource': {'type': 'STRn'},
+ 'GetShaderSource': {'type': 'STRn', 'DecoderFunc': 'DoGetShaderSource'},
'GetTexParameterfv': {'type': 'GETn'},
'GetTexParameteriv': {'type': 'GETn'},
'GetUniformfv': {
@@ -989,7 +991,7 @@ _FUNCTION_INFO = {
'immediate': True,
'needs_size': True,
'cmd_args':
- 'GLuint shader, GLsizei count, const char* data',
+ 'GLuint shader, const char* data',
},
'TexImage2D': {'type': 'Manual', 'immediate': True},
'TexParameterfv': {'type': 'PUT', 'data_type': 'GLfloat', 'count': 1},