| 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 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2307 'unit_test': False, | 2307 'unit_test': False, |
| 2308 'pepper_interface': 'Query', | 2308 'pepper_interface': 'Query', |
| 2309 }, | 2309 }, |
| 2310 'IsQueryEXT': { | 2310 'IsQueryEXT': { |
| 2311 'gen_cmd': False, | 2311 'gen_cmd': False, |
| 2312 'client_test': False, | 2312 'client_test': False, |
| 2313 'pepper_interface': 'Query', | 2313 'pepper_interface': 'Query', |
| 2314 }, | 2314 }, |
| 2315 'BeginQueryEXT': { | 2315 'BeginQueryEXT': { |
| 2316 'type': 'Manual', | 2316 'type': 'Manual', |
| 2317 'cmd_args': 'GLenumQueryTarget target, GLidQuery id, void* sync_data', | 2317 'cmd_args': 'GLenumQueryTarget target, GLidQuery id, ' |
| 2318 'uint32 serial, void* sync_data', |
| 2318 'immediate': False, | 2319 'immediate': False, |
| 2319 'gl_test_func': 'glBeginQuery', | 2320 'gl_test_func': 'glBeginQuery', |
| 2320 'pepper_interface': 'Query', | 2321 'pepper_interface': 'Query', |
| 2321 }, | 2322 }, |
| 2322 'EndQueryEXT': { | 2323 'EndQueryEXT': { |
| 2323 'type': 'Manual', | 2324 'type': 'Manual', |
| 2324 'cmd_args': 'GLenumQueryTarget target, GLuint submit_count', | 2325 'cmd_args': 'GLenumQueryTarget target, uint32 serial, GLuint submit_count', |
| 2325 'gl_test_func': 'glEndnQuery', | 2326 'gl_test_func': 'glEndQuery', |
| 2326 'client_test': False, | 2327 'client_test': False, |
| 2327 'pepper_interface': 'Query', | 2328 'pepper_interface': 'Query', |
| 2328 }, | 2329 }, |
| 2329 'GetQueryivEXT': { | 2330 'GetQueryivEXT': { |
| 2330 'gen_cmd': False, | 2331 'gen_cmd': False, |
| 2331 'client_test': False, | 2332 'client_test': False, |
| 2332 'gl_test_func': 'glGetQueryiv', | 2333 'gl_test_func': 'glGetQueryiv', |
| 2333 'pepper_interface': 'Query', | 2334 'pepper_interface': 'Query', |
| 2334 }, | 2335 }, |
| 2335 'GetQueryObjectuivEXT': { | 2336 'GetQueryObjectuivEXT': { |
| (...skipping 5511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7847 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7848 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
| 7848 | 7849 |
| 7849 if gen.errors > 0: | 7850 if gen.errors > 0: |
| 7850 print "%d errors" % gen.errors | 7851 print "%d errors" % gen.errors |
| 7851 return 1 | 7852 return 1 |
| 7852 return 0 | 7853 return 0 |
| 7853 | 7854 |
| 7854 | 7855 |
| 7855 if __name__ == '__main__': | 7856 if __name__ == '__main__': |
| 7856 sys.exit(main(sys.argv[1:])) | 7857 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |