| OLD | NEW |
| 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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2027 'data_transfer_methods': ['shm'], | 2027 'data_transfer_methods': ['shm'], |
| 2028 'cmd_args': | 2028 'cmd_args': |
| 2029 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' | 2029 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' |
| 2030 'void* result', | 2030 'void* result', |
| 2031 'result': [ | 2031 'result': [ |
| 2032 'int32_t success', | 2032 'int32_t success', |
| 2033 'int32_t size', | 2033 'int32_t size', |
| 2034 'uint32_t type', | 2034 'uint32_t type', |
| 2035 ], | 2035 ], |
| 2036 }, | 2036 }, |
| 2037 'GetActiveUniformBlockName': { |
| 2038 'type': 'Custom', |
| 2039 'data_transfer_methods': ['shm'], |
| 2040 'cmd_args': |
| 2041 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' |
| 2042 'void* result', |
| 2043 'result': ['int32_t'], |
| 2044 'unsafe': True, |
| 2045 }, |
| 2037 'GetAttachedShaders': { | 2046 'GetAttachedShaders': { |
| 2038 'type': 'Custom', | 2047 'type': 'Custom', |
| 2039 'data_transfer_methods': ['shm'], | 2048 'data_transfer_methods': ['shm'], |
| 2040 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', | 2049 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', |
| 2041 'result': ['SizedResult<GLuint>'], | 2050 'result': ['SizedResult<GLuint>'], |
| 2042 }, | 2051 }, |
| 2043 'GetAttribLocation': { | 2052 'GetAttribLocation': { |
| 2044 'type': 'Custom', | 2053 'type': 'Custom', |
| 2045 'data_transfer_methods': ['shm'], | 2054 'data_transfer_methods': ['shm'], |
| 2046 'cmd_args': | 2055 'cmd_args': |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2197 'type': 'GETn', | 2206 'type': 'GETn', |
| 2198 'decoder_func': 'DoGetTexParameteriv', | 2207 'decoder_func': 'DoGetTexParameteriv', |
| 2199 'result': ['SizedResult<GLint>'] | 2208 'result': ['SizedResult<GLint>'] |
| 2200 }, | 2209 }, |
| 2201 'GetTranslatedShaderSourceANGLE': { | 2210 'GetTranslatedShaderSourceANGLE': { |
| 2202 'type': 'STRn', | 2211 'type': 'STRn', |
| 2203 'get_len_func': 'DoGetShaderiv', | 2212 'get_len_func': 'DoGetShaderiv', |
| 2204 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', | 2213 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', |
| 2205 'unit_test': False, | 2214 'unit_test': False, |
| 2206 'extension': True, | 2215 'extension': True, |
| 2207 }, | 2216 }, |
| 2217 'GetUniformBlockIndex': { |
| 2218 'type': 'Custom', |
| 2219 'data_transfer_methods': ['shm'], |
| 2220 'cmd_args': |
| 2221 'GLidProgram program, uint32_t name_bucket_id, GLuint* index', |
| 2222 'result': ['GLuint'], |
| 2223 'error_return': 'GL_INVALID_INDEX', |
| 2224 'unsafe': True, |
| 2225 }, |
| 2226 'GetUniformBlocksCHROMIUM': { |
| 2227 'type': 'Custom', |
| 2228 'expectation': False, |
| 2229 'impl_func': False, |
| 2230 'extension': True, |
| 2231 'chromium': True, |
| 2232 'client_test': False, |
| 2233 'cmd_args': 'GLidProgram program, uint32_t bucket_id', |
| 2234 'result': ['uint32_t'], |
| 2235 'unsafe': True, |
| 2236 }, |
| 2208 'GetUniformfv': { | 2237 'GetUniformfv': { |
| 2209 'type': 'Custom', | 2238 'type': 'Custom', |
| 2210 'data_transfer_methods': ['shm'], | 2239 'data_transfer_methods': ['shm'], |
| 2211 'result': ['SizedResult<GLfloat>'], | 2240 'result': ['SizedResult<GLfloat>'], |
| 2212 }, | 2241 }, |
| 2213 'GetUniformiv': { | 2242 'GetUniformiv': { |
| 2214 'type': 'Custom', | 2243 'type': 'Custom', |
| 2215 'data_transfer_methods': ['shm'], | 2244 'data_transfer_methods': ['shm'], |
| 2216 'result': ['SizedResult<GLint>'], | 2245 'result': ['SizedResult<GLint>'], |
| 2217 }, | 2246 }, |
| (...skipping 7884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10102 Format(gen.generated_cpp_filenames) | 10131 Format(gen.generated_cpp_filenames) |
| 10103 | 10132 |
| 10104 if gen.errors > 0: | 10133 if gen.errors > 0: |
| 10105 print "%d errors" % gen.errors | 10134 print "%d errors" % gen.errors |
| 10106 return 1 | 10135 return 1 |
| 10107 return 0 | 10136 return 0 |
| 10108 | 10137 |
| 10109 | 10138 |
| 10110 if __name__ == '__main__': | 10139 if __name__ == '__main__': |
| 10111 sys.exit(main(sys.argv[1:])) | 10140 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |