| 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 'GL_CURRENT_QUERY_EXT', | 770 'GL_CURRENT_QUERY_EXT', |
| 771 ], | 771 ], |
| 772 }, | 772 }, |
| 773 'QueryTarget': { | 773 'QueryTarget': { |
| 774 'type': 'GLenum', | 774 'type': 'GLenum', |
| 775 'valid': [ | 775 'valid': [ |
| 776 'GL_ANY_SAMPLES_PASSED_EXT', | 776 'GL_ANY_SAMPLES_PASSED_EXT', |
| 777 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 777 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
| 778 'GL_COMMANDS_ISSUED_CHROMIUM', | 778 'GL_COMMANDS_ISSUED_CHROMIUM', |
| 779 'GL_LATENCY_QUERY_CHROMIUM', | 779 'GL_LATENCY_QUERY_CHROMIUM', |
| 780 'GL_ASYNC_TASKS_COMPLETED_CHROMIUM', |
| 780 ], | 781 ], |
| 781 }, | 782 }, |
| 782 'RenderBufferParameter': { | 783 'RenderBufferParameter': { |
| 783 'type': 'GLenum', | 784 'type': 'GLenum', |
| 784 'valid': [ | 785 'valid': [ |
| 785 'GL_RENDERBUFFER_RED_SIZE', | 786 'GL_RENDERBUFFER_RED_SIZE', |
| 786 'GL_RENDERBUFFER_GREEN_SIZE', | 787 'GL_RENDERBUFFER_GREEN_SIZE', |
| 787 'GL_RENDERBUFFER_BLUE_SIZE', | 788 'GL_RENDERBUFFER_BLUE_SIZE', |
| 788 'GL_RENDERBUFFER_ALPHA_SIZE', | 789 'GL_RENDERBUFFER_ALPHA_SIZE', |
| 789 'GL_RENDERBUFFER_DEPTH_SIZE', | 790 'GL_RENDERBUFFER_DEPTH_SIZE', |
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 'cmd_args': 'GLuint bucket_id', | 2232 'cmd_args': 'GLuint bucket_id', |
| 2232 'extension': True, | 2233 'extension': True, |
| 2233 'chromium': True, | 2234 'chromium': True, |
| 2234 }, | 2235 }, |
| 2235 'TraceEndCHROMIUM': { | 2236 'TraceEndCHROMIUM': { |
| 2236 'decoder_func': 'DoTraceEndCHROMIUM', | 2237 'decoder_func': 'DoTraceEndCHROMIUM', |
| 2237 'unit_test': False, | 2238 'unit_test': False, |
| 2238 'extension': True, | 2239 'extension': True, |
| 2239 'chromium': True, | 2240 'chromium': True, |
| 2240 }, | 2241 }, |
| 2242 'AsyncTexImage2DCHROMIUM': { |
| 2243 'type': 'Manual', |
| 2244 'immediate': False, |
| 2245 'client_test': False, |
| 2246 'extension': True, |
| 2247 'chromium': True, |
| 2248 }, |
| 2249 'AsyncTexSubImage2DCHROMIUM': { |
| 2250 'type': 'Manual', |
| 2251 'immediate': False, |
| 2252 'client_test': False, |
| 2253 'extension': True, |
| 2254 'chromium': True, |
| 2255 }, |
| 2241 } | 2256 } |
| 2242 | 2257 |
| 2243 | 2258 |
| 2244 def Grouper(n, iterable, fillvalue=None): | 2259 def Grouper(n, iterable, fillvalue=None): |
| 2245 """Collect data into fixed-length chunks or blocks""" | 2260 """Collect data into fixed-length chunks or blocks""" |
| 2246 args = [iter(iterable)] * n | 2261 args = [iter(iterable)] * n |
| 2247 return itertools.izip_longest(fillvalue=fillvalue, *args) | 2262 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 2248 | 2263 |
| 2249 | 2264 |
| 2250 def SplitWords(input_string): | 2265 def SplitWords(input_string): |
| (...skipping 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7425 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") | 7440 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") |
| 7426 | 7441 |
| 7427 if gen.errors > 0: | 7442 if gen.errors > 0: |
| 7428 print "%d errors" % gen.errors | 7443 print "%d errors" % gen.errors |
| 7429 return 1 | 7444 return 1 |
| 7430 return 0 | 7445 return 0 |
| 7431 | 7446 |
| 7432 | 7447 |
| 7433 if __name__ == '__main__': | 7448 if __name__ == '__main__': |
| 7434 sys.exit(main(sys.argv[1:])) | 7449 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |