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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 'GL_RGB565', | 1174 'GL_RGB565', |
1175 'GL_RGBA4', | 1175 'GL_RGBA4', |
1176 'GL_RGB5_A1', | 1176 'GL_RGB5_A1', |
1177 'GL_ALPHA8_EXT', | 1177 'GL_ALPHA8_EXT', |
1178 'GL_LUMINANCE8_EXT', | 1178 'GL_LUMINANCE8_EXT', |
1179 'GL_LUMINANCE8_ALPHA8_EXT', | 1179 'GL_LUMINANCE8_ALPHA8_EXT', |
1180 'GL_RGB8_OES', | 1180 'GL_RGB8_OES', |
1181 'GL_RGBA8_OES', | 1181 'GL_RGBA8_OES', |
1182 ], | 1182 ], |
1183 }, | 1183 }, |
| 1184 'ImageInternalFormat': { |
| 1185 'type': 'GLenum', |
| 1186 'valid': [ |
| 1187 'GL_RGB', |
| 1188 'GL_RGBA', |
| 1189 ], |
| 1190 }, |
| 1191 'ImageUsage': { |
| 1192 'type': 'GLenum', |
| 1193 'valid': [ |
| 1194 'GL_MAP_CHROMIUM', |
| 1195 'GL_SCANOUT_CHROMIUM' |
| 1196 ], |
| 1197 }, |
1184 'VertexAttribType': { | 1198 'VertexAttribType': { |
1185 'type': 'GLenum', | 1199 'type': 'GLenum', |
1186 'valid': [ | 1200 'valid': [ |
1187 'GL_BYTE', | 1201 'GL_BYTE', |
1188 'GL_UNSIGNED_BYTE', | 1202 'GL_UNSIGNED_BYTE', |
1189 'GL_SHORT', | 1203 'GL_SHORT', |
1190 'GL_UNSIGNED_SHORT', | 1204 'GL_UNSIGNED_SHORT', |
1191 # 'GL_FIXED', // This is not available on Desktop GL. | 1205 # 'GL_FIXED', // This is not available on Desktop GL. |
1192 'GL_FLOAT', | 1206 'GL_FLOAT', |
1193 ], | 1207 ], |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 'chromium': True, | 1501 'chromium': True, |
1488 }, | 1502 }, |
1489 'GetImageParameterivCHROMIUM': { | 1503 'GetImageParameterivCHROMIUM': { |
1490 'type': 'Manual', | 1504 'type': 'Manual', |
1491 'client_test': False, | 1505 'client_test': False, |
1492 'gen_cmd': False, | 1506 'gen_cmd': False, |
1493 'expectation': False, | 1507 'expectation': False, |
1494 'extension': True, | 1508 'extension': True, |
1495 'chromium': True, | 1509 'chromium': True, |
1496 }, | 1510 }, |
| 1511 'CreateGpuMemoryBufferImageCHROMIUM': { |
| 1512 'type': 'Manual', |
| 1513 'cmd_args': |
| 1514 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage', |
| 1515 'result': ['GLuint'], |
| 1516 'client_test': False, |
| 1517 'gen_cmd': False, |
| 1518 'expectation': False, |
| 1519 'extension': True, |
| 1520 'chromium': True, |
| 1521 }, |
1497 'CreateProgram': { | 1522 'CreateProgram': { |
1498 'type': 'Create', | 1523 'type': 'Create', |
1499 'client_test': False, | 1524 'client_test': False, |
1500 }, | 1525 }, |
1501 'CreateShader': { | 1526 'CreateShader': { |
1502 'type': 'Create', | 1527 'type': 'Create', |
1503 'client_test': False, | 1528 'client_test': False, |
1504 }, | 1529 }, |
1505 'BlendColor': { | 1530 'BlendColor': { |
1506 'type': 'StateSet', | 1531 'type': 'StateSet', |
(...skipping 7124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8631 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8656 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
8632 | 8657 |
8633 if gen.errors > 0: | 8658 if gen.errors > 0: |
8634 print "%d errors" % gen.errors | 8659 print "%d errors" % gen.errors |
8635 return 1 | 8660 return 1 |
8636 return 0 | 8661 return 0 |
8637 | 8662 |
8638 | 8663 |
8639 if __name__ == '__main__': | 8664 if __name__ == '__main__': |
8640 sys.exit(main(sys.argv[1:])) | 8665 sys.exit(main(sys.argv[1:])) |
OLD | NEW |