| 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 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 }, | 2391 }, |
| 2392 'BindBuffer': { | 2392 'BindBuffer': { |
| 2393 'type': 'Bind', | 2393 'type': 'Bind', |
| 2394 'decoder_func': 'DoBindBuffer', | 2394 'decoder_func': 'DoBindBuffer', |
| 2395 'gen_func': 'GenBuffersARB', | 2395 'gen_func': 'GenBuffersARB', |
| 2396 }, | 2396 }, |
| 2397 'BindBufferBase': { | 2397 'BindBufferBase': { |
| 2398 'type': 'Bind', | 2398 'type': 'Bind', |
| 2399 'decoder_func': 'DoBindBufferBase', | 2399 'decoder_func': 'DoBindBufferBase', |
| 2400 'gen_func': 'GenBuffersARB', | 2400 'gen_func': 'GenBuffersARB', |
| 2401 'unit_test': False, |
| 2401 'unsafe': True, | 2402 'unsafe': True, |
| 2402 }, | 2403 }, |
| 2403 'BindBufferRange': { | 2404 'BindBufferRange': { |
| 2404 'type': 'Bind', | 2405 'type': 'Bind', |
| 2405 'decoder_func': 'DoBindBufferRange', | 2406 'decoder_func': 'DoBindBufferRange', |
| 2406 'gen_func': 'GenBuffersARB', | 2407 'gen_func': 'GenBuffersARB', |
| 2407 'valid_args': { | 2408 'valid_args': { |
| 2408 '3': '4', | 2409 '3': '4', |
| 2409 '4': '4' | 2410 '4': '4' |
| 2410 }, | 2411 }, |
| (...skipping 9117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11528 Format(gen.generated_cpp_filenames) | 11529 Format(gen.generated_cpp_filenames) |
| 11529 | 11530 |
| 11530 if gen.errors > 0: | 11531 if gen.errors > 0: |
| 11531 print "%d errors" % gen.errors | 11532 print "%d errors" % gen.errors |
| 11532 return 1 | 11533 return 1 |
| 11533 return 0 | 11534 return 0 |
| 11534 | 11535 |
| 11535 | 11536 |
| 11536 if __name__ == '__main__': | 11537 if __name__ == '__main__': |
| 11537 sys.exit(main(sys.argv[1:])) | 11538 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |