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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 333303002: generate GetAttribLocation/GetUniformLocation by build_gles2_cmd_buffer.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_cmd_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/build_gles2_cmd_buffer.py
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 1c7b0199371cf8732b1335d8db811af47c840545..e8b5fe3abf297c74ea90b1154a9065f4564687e7 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -1708,10 +1708,10 @@ _FUNCTION_INFO = {
'result': ['SizedResult<GLuint>'],
},
'GetAttribLocation': {
- 'type': 'HandWritten',
- 'needs_size': True,
+ 'type': 'Custom',
'cmd_args':
- 'GLidProgram program, const char* name, NonImmediate GLint* location',
+ 'GLidProgram program, uint32_t name_bucket_id, '
+ 'NonImmediate GLint* location',
'result': ['GLint'],
'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocation.xml
},
@@ -1865,10 +1865,10 @@ _FUNCTION_INFO = {
'result': ['SizedResult<GLint>'],
},
'GetUniformLocation': {
- 'type': 'HandWritten',
- 'needs_size': True,
+ 'type': 'Custom',
'cmd_args':
- 'GLidProgram program, const char* name, NonImmediate GLint* location',
+ 'GLidProgram program, uint32_t name_bucket_id, '
+ 'NonImmediate GLint* location',
no sievers 2014/07/10 20:47:46 Can |NonImmediate| and the logic in this script th
'result': ['GLint'],
'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocation.xml
},
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_cmd_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698