| 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_PIXEL_TRANSFERS_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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 'cmd_args': 'GLuint bucket_id', | 2233 'cmd_args': 'GLuint bucket_id', |
| 2233 'extension': True, | 2234 'extension': True, |
| 2234 'chromium': True, | 2235 'chromium': True, |
| 2235 }, | 2236 }, |
| 2236 'TraceEndCHROMIUM': { | 2237 'TraceEndCHROMIUM': { |
| 2237 'decoder_func': 'DoTraceEndCHROMIUM', | 2238 'decoder_func': 'DoTraceEndCHROMIUM', |
| 2238 'unit_test': False, | 2239 'unit_test': False, |
| 2239 'extension': True, | 2240 'extension': True, |
| 2240 'chromium': True, | 2241 'chromium': True, |
| 2241 }, | 2242 }, |
| 2243 'AsyncTexImage2DCHROMIUM': { |
| 2244 'type': 'Manual', |
| 2245 'immediate': False, |
| 2246 'client_test': False, |
| 2247 'extension': True, |
| 2248 'chromium': True, |
| 2249 }, |
| 2250 'AsyncTexSubImage2DCHROMIUM': { |
| 2251 'type': 'Manual', |
| 2252 'immediate': False, |
| 2253 'client_test': False, |
| 2254 'extension': True, |
| 2255 'chromium': True, |
| 2256 }, |
| 2242 } | 2257 } |
| 2243 | 2258 |
| 2244 | 2259 |
| 2245 def Grouper(n, iterable, fillvalue=None): | 2260 def Grouper(n, iterable, fillvalue=None): |
| 2246 """Collect data into fixed-length chunks or blocks""" | 2261 """Collect data into fixed-length chunks or blocks""" |
| 2247 args = [iter(iterable)] * n | 2262 args = [iter(iterable)] * n |
| 2248 return itertools.izip_longest(fillvalue=fillvalue, *args) | 2263 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 2249 | 2264 |
| 2250 | 2265 |
| 2251 def SplitWords(input_string): | 2266 def SplitWords(input_string): |
| (...skipping 5175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7427 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") | 7442 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") |
| 7428 | 7443 |
| 7429 if gen.errors > 0: | 7444 if gen.errors > 0: |
| 7430 print "%d errors" % gen.errors | 7445 print "%d errors" % gen.errors |
| 7431 return 1 | 7446 return 1 |
| 7432 return 0 | 7447 return 0 |
| 7433 | 7448 |
| 7434 | 7449 |
| 7435 if __name__ == '__main__': | 7450 if __name__ == '__main__': |
| 7436 sys.exit(main(sys.argv[1:])) | 7451 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |