| 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 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2996 'result': ['SizedResult<GLuint>'], | 2996 'result': ['SizedResult<GLuint>'], |
| 2997 }, | 2997 }, |
| 2998 'GetAttribLocation': { | 2998 'GetAttribLocation': { |
| 2999 'type': 'Custom', | 2999 'type': 'Custom', |
| 3000 'data_transfer_methods': ['shm'], | 3000 'data_transfer_methods': ['shm'], |
| 3001 'cmd_args': | 3001 'cmd_args': |
| 3002 'GLidProgram program, uint32_t name_bucket_id, GLint* location', | 3002 'GLidProgram program, uint32_t name_bucket_id, GLint* location', |
| 3003 'result': ['GLint'], | 3003 'result': ['GLint'], |
| 3004 'error_return': -1, | 3004 'error_return': -1, |
| 3005 }, | 3005 }, |
| 3006 'GetBufferSubDataAsyncCHROMIUM': { |
| 3007 'type': 'Custom', |
| 3008 'data_transfer_methods': ['shm'], |
| 3009 'cmd_args': 'GLenumBufferTarget target, GLintptrNotNegative offset, ' |
| 3010 'GLsizeiptr size, ' |
| 3011 'uint32_t data_shm_id, uint32_t data_shm_offset', |
| 3012 'unsafe': True, |
| 3013 'impl_func': False, |
| 3014 'client_test': False, |
| 3015 'trace_level': 1, |
| 3016 }, |
| 3006 'GetFragDataIndexEXT': { | 3017 'GetFragDataIndexEXT': { |
| 3007 'type': 'Custom', | 3018 'type': 'Custom', |
| 3008 'data_transfer_methods': ['shm'], | 3019 'data_transfer_methods': ['shm'], |
| 3009 'cmd_args': | 3020 'cmd_args': |
| 3010 'GLidProgram program, uint32_t name_bucket_id, GLint* index', | 3021 'GLidProgram program, uint32_t name_bucket_id, GLint* index', |
| 3011 'result': ['GLint'], | 3022 'result': ['GLint'], |
| 3012 'error_return': -1, | 3023 'error_return': -1, |
| 3013 'extension': 'EXT_blend_func_extended', | 3024 'extension': 'EXT_blend_func_extended', |
| 3014 'extension_flag': 'ext_blend_func_extended', | 3025 'extension_flag': 'ext_blend_func_extended', |
| 3015 }, | 3026 }, |
| (...skipping 8312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11328 Format(gen.generated_cpp_filenames) | 11339 Format(gen.generated_cpp_filenames) |
| 11329 | 11340 |
| 11330 if gen.errors > 0: | 11341 if gen.errors > 0: |
| 11331 print "%d errors" % gen.errors | 11342 print "%d errors" % gen.errors |
| 11332 return 1 | 11343 return 1 |
| 11333 return 0 | 11344 return 0 |
| 11334 | 11345 |
| 11335 | 11346 |
| 11336 if __name__ == '__main__': | 11347 if __name__ == '__main__': |
| 11337 sys.exit(main(sys.argv[1:])) | 11348 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |