| 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 3601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3612 }, | 3612 }, |
| 3613 'SamplerParameteriv': { | 3613 'SamplerParameteriv': { |
| 3614 'type': 'PUT', | 3614 'type': 'PUT', |
| 3615 'data_value': 'GL_NEAREST', | 3615 'data_value': 'GL_NEAREST', |
| 3616 'count': 1, | 3616 'count': 1, |
| 3617 'gl_test_func': 'glSamplerParameteri', | 3617 'gl_test_func': 'glSamplerParameteri', |
| 3618 'decoder_func': 'DoSamplerParameteriv', | 3618 'decoder_func': 'DoSamplerParameteriv', |
| 3619 'first_element_only': True, | 3619 'first_element_only': True, |
| 3620 'es3': True, | 3620 'es3': True, |
| 3621 }, | 3621 }, |
| 3622 'SetSurfaceHandleCHROMIUM': { |
| 3623 'decoder_func': 'DoSetSurfaceHandleCHROMIUM', |
| 3624 'unit_test': False, |
| 3625 'client_test': False, |
| 3626 'chromium': True, |
| 3627 'extension': True, |
| 3628 }, |
| 3622 'ShaderBinary': { | 3629 'ShaderBinary': { |
| 3623 'type': 'Custom', | 3630 'type': 'Custom', |
| 3624 'client_test': False, | 3631 'client_test': False, |
| 3625 }, | 3632 }, |
| 3626 'ShaderSource': { | 3633 'ShaderSource': { |
| 3627 'type': 'PUTSTR', | 3634 'type': 'PUTSTR', |
| 3628 'decoder_func': 'DoShaderSource', | 3635 'decoder_func': 'DoShaderSource', |
| 3629 'expectation': False, | 3636 'expectation': False, |
| 3630 'data_transfer_methods': ['bucket'], | 3637 'data_transfer_methods': ['bucket'], |
| 3631 'cmd_args': | 3638 'cmd_args': |
| (...skipping 7579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11211 Format(gen.generated_cpp_filenames) | 11218 Format(gen.generated_cpp_filenames) |
| 11212 | 11219 |
| 11213 if gen.errors > 0: | 11220 if gen.errors > 0: |
| 11214 print "%d errors" % gen.errors | 11221 print "%d errors" % gen.errors |
| 11215 return 1 | 11222 return 1 |
| 11216 return 0 | 11223 return 0 |
| 11217 | 11224 |
| 11218 | 11225 |
| 11219 if __name__ == '__main__': | 11226 if __name__ == '__main__': |
| 11220 sys.exit(main(sys.argv[1:])) | 11227 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |