| 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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 'BindBufferBase': { | 1491 'BindBufferBase': { |
| 1492 'type': 'Bind', | 1492 'type': 'Bind', |
| 1493 'id_mapping': [ 'Buffer' ], | 1493 'id_mapping': [ 'Buffer' ], |
| 1494 'gen_func': 'GenBuffersARB', | 1494 'gen_func': 'GenBuffersARB', |
| 1495 'unsafe': True, | 1495 'unsafe': True, |
| 1496 }, | 1496 }, |
| 1497 'BindBufferRange': { | 1497 'BindBufferRange': { |
| 1498 'type': 'Bind', | 1498 'type': 'Bind', |
| 1499 'id_mapping': [ 'Buffer' ], | 1499 'id_mapping': [ 'Buffer' ], |
| 1500 'gen_func': 'GenBuffersARB', | 1500 'gen_func': 'GenBuffersARB', |
| 1501 'valid_args': { |
| 1502 '3': '4', |
| 1503 '4': '4' |
| 1504 }, |
| 1501 'unsafe': True, | 1505 'unsafe': True, |
| 1502 }, | 1506 }, |
| 1503 'BindFramebuffer': { | 1507 'BindFramebuffer': { |
| 1504 'type': 'Bind', | 1508 'type': 'Bind', |
| 1505 'decoder_func': 'DoBindFramebuffer', | 1509 'decoder_func': 'DoBindFramebuffer', |
| 1506 'gl_test_func': 'glBindFramebufferEXT', | 1510 'gl_test_func': 'glBindFramebufferEXT', |
| 1507 'gen_func': 'GenFramebuffersEXT', | 1511 'gen_func': 'GenFramebuffersEXT', |
| 1508 'trace_level': 1, | 1512 'trace_level': 1, |
| 1509 }, | 1513 }, |
| 1510 'BindRenderbuffer': { | 1514 'BindRenderbuffer': { |
| (...skipping 8562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10073 Format(gen.generated_cpp_filenames) | 10077 Format(gen.generated_cpp_filenames) |
| 10074 | 10078 |
| 10075 if gen.errors > 0: | 10079 if gen.errors > 0: |
| 10076 print "%d errors" % gen.errors | 10080 print "%d errors" % gen.errors |
| 10077 return 1 | 10081 return 1 |
| 10078 return 0 | 10082 return 0 |
| 10079 | 10083 |
| 10080 | 10084 |
| 10081 if __name__ == '__main__': | 10085 if __name__ == '__main__': |
| 10082 sys.exit(main(sys.argv[1:])) | 10086 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |