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 2522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 'type': 'PUTn', | 2533 'type': 'PUTn', |
2534 'count': 1, | 2534 'count': 1, |
2535 'cmd_args': 'GLenum target, GLsizei count, ' | 2535 'cmd_args': 'GLenum target, GLsizei count, ' |
2536 'const GLenum* attachments', | 2536 'const GLenum* attachments', |
2537 'decoder_func': 'DoDiscardFramebufferEXT', | 2537 'decoder_func': 'DoDiscardFramebufferEXT', |
2538 'unit_test': False, | 2538 'unit_test': False, |
2539 'client_test': False, | 2539 'client_test': False, |
2540 'extension_flag': 'ext_discard_framebuffer', | 2540 'extension_flag': 'ext_discard_framebuffer', |
2541 }, | 2541 }, |
2542 'LoseContextCHROMIUM': { | 2542 'LoseContextCHROMIUM': { |
2543 'type': 'Manual', | 2543 'decoder_func': 'DoLoseContextCHROMIUM', |
2544 'impl_func': True, | 2544 'unit_test': False, |
2545 'extension': True, | 2545 'extension': True, |
2546 'chromium': True, | 2546 'chromium': True, |
2547 }, | 2547 }, |
2548 'InsertSyncPointCHROMIUM': { | 2548 'InsertSyncPointCHROMIUM': { |
2549 'type': 'HandWritten', | 2549 'type': 'HandWritten', |
2550 'impl_func': False, | 2550 'impl_func': False, |
2551 'extension': True, | 2551 'extension': True, |
2552 'chromium': True, | 2552 'chromium': True, |
2553 }, | 2553 }, |
2554 'WaitSyncPointCHROMIUM': { | 2554 'WaitSyncPointCHROMIUM': { |
(...skipping 5782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8337 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8337 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
8338 | 8338 |
8339 if gen.errors > 0: | 8339 if gen.errors > 0: |
8340 print "%d errors" % gen.errors | 8340 print "%d errors" % gen.errors |
8341 return 1 | 8341 return 1 |
8342 return 0 | 8342 return 0 |
8343 | 8343 |
8344 | 8344 |
8345 if __name__ == '__main__': | 8345 if __name__ == '__main__': |
8346 sys.exit(main(sys.argv[1:])) | 8346 sys.exit(main(sys.argv[1:])) |
OLD | NEW |