| 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 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 'decoder_func': 'DoBindSampler', | 2437 'decoder_func': 'DoBindSampler', |
| 2438 'unsafe': True, | 2438 'unsafe': True, |
| 2439 'use_helper': True, | 2439 'use_helper': True, |
| 2440 }, | 2440 }, |
| 2441 'BindTexture': { | 2441 'BindTexture': { |
| 2442 'type': 'Bind', | 2442 'type': 'Bind', |
| 2443 'decoder_func': 'DoBindTexture', | 2443 'decoder_func': 'DoBindTexture', |
| 2444 'gen_func': 'GenTextures', | 2444 'gen_func': 'GenTextures', |
| 2445 # TODO: remove this once client side caching works. | 2445 # TODO: remove this once client side caching works. |
| 2446 'client_test': False, | 2446 'client_test': False, |
| 2447 'unit_test': False, |
| 2447 'trace_level': 2, | 2448 'trace_level': 2, |
| 2448 }, | 2449 }, |
| 2449 'BindTransformFeedback': { | 2450 'BindTransformFeedback': { |
| 2450 'type': 'Bind', | 2451 'type': 'Bind', |
| 2451 'decoder_func': 'DoBindTransformFeedback', | 2452 'decoder_func': 'DoBindTransformFeedback', |
| 2452 'unsafe': True, | 2453 'unsafe': True, |
| 2453 'use_helper': True, | 2454 'use_helper': True, |
| 2454 'unit_test': False, | 2455 'unit_test': False, |
| 2455 }, | 2456 }, |
| 2456 'BlitFramebufferCHROMIUM': { | 2457 'BlitFramebufferCHROMIUM': { |
| (...skipping 9073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11530 Format(gen.generated_cpp_filenames) | 11531 Format(gen.generated_cpp_filenames) |
| 11531 | 11532 |
| 11532 if gen.errors > 0: | 11533 if gen.errors > 0: |
| 11533 print "%d errors" % gen.errors | 11534 print "%d errors" % gen.errors |
| 11534 return 1 | 11535 return 1 |
| 11535 return 0 | 11536 return 0 |
| 11536 | 11537 |
| 11537 | 11538 |
| 11538 if __name__ == '__main__': | 11539 if __name__ == '__main__': |
| 11539 sys.exit(main(sys.argv[1:])) | 11540 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |