| 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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 'extension': True, | 2022 'extension': True, |
| 2023 'trace_level': 1, | 2023 'trace_level': 1, |
| 2024 }, | 2024 }, |
| 2025 'TexImage2D': { | 2025 'TexImage2D': { |
| 2026 'type': 'Manual', | 2026 'type': 'Manual', |
| 2027 'immediate': False, | 2027 'immediate': False, |
| 2028 'client_test': False, | 2028 'client_test': False, |
| 2029 }, | 2029 }, |
| 2030 'TexParameterf': { | 2030 'TexParameterf': { |
| 2031 'decoder_func': 'DoTexParameterf', | 2031 'decoder_func': 'DoTexParameterf', |
| 2032 'gl_test_func': 'glTexParameteri', | |
| 2033 'valid_args': { | 2032 'valid_args': { |
| 2034 '2': 'GL_NEAREST' | 2033 '2': 'GL_NEAREST' |
| 2035 }, | 2034 }, |
| 2036 }, | 2035 }, |
| 2037 'TexParameteri': { | 2036 'TexParameteri': { |
| 2038 'decoder_func': 'DoTexParameteri', | 2037 'decoder_func': 'DoTexParameteri', |
| 2039 'valid_args': { | 2038 'valid_args': { |
| 2040 '2': 'GL_NEAREST' | 2039 '2': 'GL_NEAREST' |
| 2041 }, | 2040 }, |
| 2042 }, | 2041 }, |
| 2043 'TexParameterfv': { | 2042 'TexParameterfv': { |
| 2044 'type': 'PUT', | 2043 'type': 'PUT', |
| 2045 'data_type': 'GLfloat', | 2044 'data_type': 'GLfloat', |
| 2046 'data_value': 'GL_NEAREST', | 2045 'data_value': 'GL_NEAREST', |
| 2047 'count': 1, | 2046 'count': 1, |
| 2048 'decoder_func': 'DoTexParameterfv', | 2047 'decoder_func': 'DoTexParameterfv', |
| 2049 'gl_test_func': 'glTexParameteri', | 2048 'gl_test_func': 'glTexParameterf', |
| 2050 'first_element_only': True, | 2049 'first_element_only': True, |
| 2051 }, | 2050 }, |
| 2052 'TexParameteriv': { | 2051 'TexParameteriv': { |
| 2053 'type': 'PUT', | 2052 'type': 'PUT', |
| 2054 'data_type': 'GLint', | 2053 'data_type': 'GLint', |
| 2055 'data_value': 'GL_NEAREST', | 2054 'data_value': 'GL_NEAREST', |
| 2056 'count': 1, | 2055 'count': 1, |
| 2057 'decoder_func': 'DoTexParameteriv', | 2056 'decoder_func': 'DoTexParameteriv', |
| 2058 'gl_test_func': 'glTexParameteri', | 2057 'gl_test_func': 'glTexParameteri', |
| 2059 'first_element_only': True, | 2058 'first_element_only': True, |
| (...skipping 5889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7949 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 7948 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
| 7950 | 7949 |
| 7951 if gen.errors > 0: | 7950 if gen.errors > 0: |
| 7952 print "%d errors" % gen.errors | 7951 print "%d errors" % gen.errors |
| 7953 return 1 | 7952 return 1 |
| 7954 return 0 | 7953 return 0 |
| 7955 | 7954 |
| 7956 | 7955 |
| 7957 if __name__ == '__main__': | 7956 if __name__ == '__main__': |
| 7958 sys.exit(main(sys.argv[1:])) | 7957 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |