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

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 2379203002: implement getBufferSubDataAsync prototype (Closed)
Patch Set: small clarification Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 'result': ['SizedResult<GLuint>'], 3002 'result': ['SizedResult<GLuint>'],
3003 }, 3003 },
3004 'GetAttribLocation': { 3004 'GetAttribLocation': {
3005 'type': 'Custom', 3005 'type': 'Custom',
3006 'data_transfer_methods': ['shm'], 3006 'data_transfer_methods': ['shm'],
3007 'cmd_args': 3007 'cmd_args':
3008 'GLidProgram program, uint32_t name_bucket_id, GLint* location', 3008 'GLidProgram program, uint32_t name_bucket_id, GLint* location',
3009 'result': ['GLint'], 3009 'result': ['GLint'],
3010 'error_return': -1, 3010 'error_return': -1,
3011 }, 3011 },
3012 'GetBufferSubDataAsyncCHROMIUM': {
3013 'type': 'Custom',
3014 'data_transfer_methods': ['shm'],
3015 'cmd_args': 'GLenumBufferTarget target, GLintptrNotNegative offset, '
3016 'GLsizeiptr size, '
3017 'uint32_t data_shm_id, uint32_t data_shm_offset',
3018 'unsafe': True,
3019 'impl_func': False,
3020 'client_test': False,
3021 'trace_level': 1,
3022 },
3012 'GetFragDataIndexEXT': { 3023 'GetFragDataIndexEXT': {
3013 'type': 'Custom', 3024 'type': 'Custom',
3014 'data_transfer_methods': ['shm'], 3025 'data_transfer_methods': ['shm'],
3015 'cmd_args': 3026 'cmd_args':
3016 'GLidProgram program, uint32_t name_bucket_id, GLint* index', 3027 'GLidProgram program, uint32_t name_bucket_id, GLint* index',
3017 'result': ['GLint'], 3028 'result': ['GLint'],
3018 'error_return': -1, 3029 'error_return': -1,
3019 'extension': 'EXT_blend_func_extended', 3030 'extension': 'EXT_blend_func_extended',
3020 'extension_flag': 'ext_blend_func_extended', 3031 'extension_flag': 'ext_blend_func_extended',
3021 }, 3032 },
(...skipping 8313 matching lines...) Expand 10 before | Expand all | Expand 10 after
11335 Format(gen.generated_cpp_filenames) 11346 Format(gen.generated_cpp_filenames)
11336 11347
11337 if gen.errors > 0: 11348 if gen.errors > 0:
11338 print "%d errors" % gen.errors 11349 print "%d errors" % gen.errors
11339 return 1 11350 return 1
11340 return 0 11351 return 0
11341 11352
11342 11353
11343 if __name__ == '__main__': 11354 if __name__ == '__main__':
11344 sys.exit(main(sys.argv[1:])) 11355 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.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