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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « gpu/GLES2/gles2_command_buffer.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.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
===================================================================
--- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 47428)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -181,7 +181,8 @@
GL_APICALL void GL_APIENTRY glGenSharedIds (GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids);
GL_APICALL void GL_APIENTRY glDeleteSharedIds (GLuint namespace_id, GLsizei n, const GLuint* ids);
GL_APICALL void GL_APIENTRY glRegisterSharedIds (GLuint namespace_id, GLsizei n, const GLuint* ids);
-GL_APICALL void GL_APIENTRY glCommandBufferEnable (GLenumCommandBufferState cap, GLboolean enable);"""
+GL_APICALL GLboolean GL_APIENTRY glCommandBufferEnable (const char* feature);
+"""
# This is the list of all commmands that will be generated and their Id.
# If a command is not listed in this table it is an error.
@@ -522,12 +523,6 @@
'GL_FOG_HINT',
],
},
- 'CommandBufferState': {
- 'type': 'GLenum',
- 'valid': [
- 'GLES2_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS',
- ],
- },
'TextureTarget': {
'type': 'GLenum',
'valid': [
@@ -1027,8 +1022,12 @@
},
'ClearDepthf': {'decoder_func': 'glClearDepth'},
'CommandBufferEnable': {
+ 'type': 'Custom',
+ 'immediate': False,
'decoder_func': 'DoCommandBufferEnable',
'expectation': False,
+ 'cmd_args': 'GLuint bucket_id, GLint* result',
+ 'result': ['GLint'],
},
'CompileShader': {'decoder_func': 'DoCompileShader', 'unit_test': False},
'CompressedTexImage2D': {
« no previous file with comments | « gpu/GLES2/gles2_command_buffer.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698