| 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 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3592 }, | 3592 }, |
| 3593 'SamplerParameteriv': { | 3593 'SamplerParameteriv': { |
| 3594 'type': 'PUT', | 3594 'type': 'PUT', |
| 3595 'data_value': 'GL_NEAREST', | 3595 'data_value': 'GL_NEAREST', |
| 3596 'count': 1, | 3596 'count': 1, |
| 3597 'gl_test_func': 'glSamplerParameteri', | 3597 'gl_test_func': 'glSamplerParameteri', |
| 3598 'decoder_func': 'DoSamplerParameteriv', | 3598 'decoder_func': 'DoSamplerParameteriv', |
| 3599 'first_element_only': True, | 3599 'first_element_only': True, |
| 3600 'es3': True, | 3600 'es3': True, |
| 3601 }, | 3601 }, |
| 3602 'SetSurfaceHandleCHROMIUM': { |
| 3603 'decoder_func': 'DoSetSurfaceHandleCHROMIUM', |
| 3604 'unit_test': False, |
| 3605 'client_test': False, |
| 3606 'chromium': True, |
| 3607 'extension': True, |
| 3608 }, |
| 3602 'ShaderBinary': { | 3609 'ShaderBinary': { |
| 3603 'type': 'Custom', | 3610 'type': 'Custom', |
| 3604 'client_test': False, | 3611 'client_test': False, |
| 3605 }, | 3612 }, |
| 3606 'ShaderSource': { | 3613 'ShaderSource': { |
| 3607 'type': 'PUTSTR', | 3614 'type': 'PUTSTR', |
| 3608 'decoder_func': 'DoShaderSource', | 3615 'decoder_func': 'DoShaderSource', |
| 3609 'expectation': False, | 3616 'expectation': False, |
| 3610 'data_transfer_methods': ['bucket'], | 3617 'data_transfer_methods': ['bucket'], |
| 3611 'cmd_args': | 3618 'cmd_args': |
| (...skipping 7563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11175 Format(gen.generated_cpp_filenames) | 11182 Format(gen.generated_cpp_filenames) |
| 11176 | 11183 |
| 11177 if gen.errors > 0: | 11184 if gen.errors > 0: |
| 11178 print "%d errors" % gen.errors | 11185 print "%d errors" % gen.errors |
| 11179 return 1 | 11186 return 1 |
| 11180 return 0 | 11187 return 0 |
| 11181 | 11188 |
| 11182 | 11189 |
| 11183 if __name__ == '__main__': | 11190 if __name__ == '__main__': |
| 11184 sys.exit(main(sys.argv[1:])) | 11191 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |