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 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 }, | 1695 }, |
1696 'IsTexture': { | 1696 'IsTexture': { |
1697 'type': 'Is', | 1697 'type': 'Is', |
1698 'decoder_func': 'DoIsTexture', | 1698 'decoder_func': 'DoIsTexture', |
1699 'expectation': False, | 1699 'expectation': False, |
1700 }, | 1700 }, |
1701 'LinkProgram': { | 1701 'LinkProgram': { |
1702 'decoder_func': 'DoLinkProgram', | 1702 'decoder_func': 'DoLinkProgram', |
1703 'impl_func': False, | 1703 'impl_func': False, |
1704 }, | 1704 }, |
| 1705 'MapBufferCHROMIUM': { |
| 1706 'gen_cmd': False, |
| 1707 'extension': True, |
| 1708 'chromium': True, |
| 1709 'client_test': False, |
| 1710 'chromium': True, |
| 1711 }, |
1705 'MapBufferSubDataCHROMIUM': { | 1712 'MapBufferSubDataCHROMIUM': { |
1706 'gen_cmd': False, | 1713 'gen_cmd': False, |
1707 'extension': True, | 1714 'extension': True, |
1708 'chromium': True, | 1715 'chromium': True, |
1709 'client_test': False, | 1716 'client_test': False, |
1710 'pepper_interface': 'ChromiumMapSub', | 1717 'pepper_interface': 'ChromiumMapSub', |
1711 }, | 1718 }, |
1712 'MapTexSubImage2DCHROMIUM': { | 1719 'MapTexSubImage2DCHROMIUM': { |
1713 'gen_cmd': False, | 1720 'gen_cmd': False, |
1714 'extension': True, | 1721 'extension': True, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1917 'data_type': 'GLfloat', | 1924 'data_type': 'GLfloat', |
1918 'count': 9, | 1925 'count': 9, |
1919 'decoder_func': 'DoUniformMatrix3fv', | 1926 'decoder_func': 'DoUniformMatrix3fv', |
1920 }, | 1927 }, |
1921 'UniformMatrix4fv': { | 1928 'UniformMatrix4fv': { |
1922 'type': 'PUTn', | 1929 'type': 'PUTn', |
1923 'data_type': 'GLfloat', | 1930 'data_type': 'GLfloat', |
1924 'count': 16, | 1931 'count': 16, |
1925 'decoder_func': 'DoUniformMatrix4fv', | 1932 'decoder_func': 'DoUniformMatrix4fv', |
1926 }, | 1933 }, |
| 1934 'UnmapBufferCHROMIUM': { |
| 1935 'gen_cmd': False, |
| 1936 'extension': True, |
| 1937 'chromium': True, |
| 1938 'client_test': False, |
| 1939 'chromium': True, |
| 1940 }, |
1927 'UnmapBufferSubDataCHROMIUM': { | 1941 'UnmapBufferSubDataCHROMIUM': { |
1928 'gen_cmd': False, | 1942 'gen_cmd': False, |
1929 'extension': True, | 1943 'extension': True, |
1930 'chromium': True, | 1944 'chromium': True, |
1931 'client_test': False, | 1945 'client_test': False, |
1932 'pepper_interface': 'ChromiumMapSub', | 1946 'pepper_interface': 'ChromiumMapSub', |
1933 }, | 1947 }, |
1934 'UnmapTexSubImage2DCHROMIUM': { | 1948 'UnmapTexSubImage2DCHROMIUM': { |
1935 'gen_cmd': False, | 1949 'gen_cmd': False, |
1936 'extension': True, | 1950 'extension': True, |
(...skipping 5311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7248 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") | 7262 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") |
7249 | 7263 |
7250 if gen.errors > 0: | 7264 if gen.errors > 0: |
7251 print "%d errors" % gen.errors | 7265 print "%d errors" % gen.errors |
7252 return 1 | 7266 return 1 |
7253 return 0 | 7267 return 0 |
7254 | 7268 |
7255 | 7269 |
7256 if __name__ == '__main__': | 7270 if __name__ == '__main__': |
7257 sys.exit(main(sys.argv[1:])) | 7271 sys.exit(main(sys.argv[1:])) |
OLD | NEW |