| 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 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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:])) |
| OLD | NEW |