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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 4acf8e3731ad1746fc68a99a4ccdef9fd588a96d..f7f0c7776c43e9afc5b6a8dddcef1d11f826cd4a 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -588,6 +588,16 @@ _NAMED_TYPE_INFO = {
'GL_RENDERBUFFER',
],
},
+ 'IndexedBufferTarget': {
+ 'type': 'GLenum',
+ 'valid': [
+ 'GL_TRANSFORM_FEEDBACK_BUFFER',
+ 'GL_UNIFORM_BUFFER',
+ ],
+ 'invalid': [
+ 'GL_RENDERBUFFER',
+ ],
+ },
'BufferUsage': {
'type': 'GLenum',
'valid': [
@@ -1418,6 +1428,11 @@ _FUNCTION_INFO = {
'decoder_func': 'DoBindBuffer',
'gen_func': 'GenBuffersARB',
},
+ 'BindBufferBase': {
+ 'type': 'Bind',
+ 'id_mapping': [ 'Buffer' ],
+ 'unsafe': True,
+ },
'BindFramebuffer': {
'type': 'Bind',
'decoder_func': 'DoBindFramebuffer',
@@ -2356,6 +2371,12 @@ _FUNCTION_INFO = {
'data_transfer_methods': ['shm'],
'client_test': False,
},
+ 'TexImage3D': {
+ 'type': 'Manual',
+ 'data_transfer_methods': ['shm'],
+ 'client_test': False,
+ 'unsafe': True,
+ },
'TexParameterf': {
'decoder_func': 'DoTexParameterf',
'valid_args': {
@@ -2397,6 +2418,17 @@ _FUNCTION_INFO = {
'GLenumTextureFormat format, GLenumPixelType type, '
'const void* pixels, GLboolean internal'
},
+ 'TexSubImage3D': {
+ 'type': 'Manual',
+ 'data_transfer_methods': ['shm'],
+ 'client_test': False,
+ 'cmd_args': 'GLenumTextureTarget target, GLint level, '
+ 'GLint xoffset, GLint yoffset, GLint zoffset, '
+ 'GLsizei width, GLsizei height, GLsizei depth, '
+ 'GLenumTextureFormat format, GLenumPixelType type, '
+ 'const void* pixels, GLboolean internal',
+ 'unsafe': True,
+ },
'Uniform1f': {'type': 'PUTXn', 'count': 1},
'Uniform1fv': {
'type': 'PUTn',
@@ -4383,7 +4415,7 @@ TEST_P(%(test_name)s, %(name)sValidArgsNewId) {
self.WriteValidUnitTest(func, file, valid_test, {
'first_arg': func.GetOriginalArgs()[0].GetValidArg(func),
'first_gl_arg': func.GetOriginalArgs()[0].GetValidGLArg(func),
- 'resource_type': func.GetOriginalArgs()[1].resource_type,
+ 'resource_type': func.GetOriginalArgs()[-1].resource_type,
'gl_gen_func_name': func.GetInfo("gen_func"),
}, *extras)
@@ -4439,7 +4471,7 @@ TEST_P(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
name_arg = func.GetOriginalArgs()[0]
else:
# Bind functions that have both a target and a name (like BindTexture)
- name_arg = func.GetOriginalArgs()[1]
+ name_arg = func.GetOriginalArgs()[-1]
file.Write(code % {
'name': func.name,
« no previous file with comments | « gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc ('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