| 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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 'GL_CURRENT_QUERY_EXT', | 1253 'GL_CURRENT_QUERY_EXT', |
| 1254 ], | 1254 ], |
| 1255 }, | 1255 }, |
| 1256 'QueryTarget': { | 1256 'QueryTarget': { |
| 1257 'type': 'GLenum', | 1257 'type': 'GLenum', |
| 1258 'valid': [ | 1258 'valid': [ |
| 1259 'GL_ANY_SAMPLES_PASSED_EXT', | 1259 'GL_ANY_SAMPLES_PASSED_EXT', |
| 1260 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 1260 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
| 1261 'GL_COMMANDS_ISSUED_CHROMIUM', | 1261 'GL_COMMANDS_ISSUED_CHROMIUM', |
| 1262 'GL_LATENCY_QUERY_CHROMIUM', | 1262 'GL_LATENCY_QUERY_CHROMIUM', |
| 1263 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', | |
| 1264 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', | 1263 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', |
| 1265 'GL_COMMANDS_COMPLETED_CHROMIUM', | 1264 'GL_COMMANDS_COMPLETED_CHROMIUM', |
| 1266 ], | 1265 ], |
| 1267 }, | 1266 }, |
| 1268 'RenderBufferParameter': { | 1267 'RenderBufferParameter': { |
| 1269 'type': 'GLenum', | 1268 'type': 'GLenum', |
| 1270 'valid': [ | 1269 'valid': [ |
| 1271 'GL_RENDERBUFFER_RED_SIZE', | 1270 'GL_RENDERBUFFER_RED_SIZE', |
| 1272 'GL_RENDERBUFFER_GREEN_SIZE', | 1271 'GL_RENDERBUFFER_GREEN_SIZE', |
| 1273 'GL_RENDERBUFFER_BLUE_SIZE', | 1272 'GL_RENDERBUFFER_BLUE_SIZE', |
| (...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4019 'chromium': True, | 4018 'chromium': True, |
| 4020 }, | 4019 }, |
| 4021 'TraceEndCHROMIUM': { | 4020 'TraceEndCHROMIUM': { |
| 4022 'impl_func': False, | 4021 'impl_func': False, |
| 4023 'client_test': False, | 4022 'client_test': False, |
| 4024 'decoder_func': 'DoTraceEndCHROMIUM', | 4023 'decoder_func': 'DoTraceEndCHROMIUM', |
| 4025 'unit_test': False, | 4024 'unit_test': False, |
| 4026 'extension': True, | 4025 'extension': True, |
| 4027 'chromium': True, | 4026 'chromium': True, |
| 4028 }, | 4027 }, |
| 4029 'AsyncTexImage2DCHROMIUM': { | |
| 4030 'type': 'Manual', | |
| 4031 'data_transfer_methods': ['shm'], | |
| 4032 'client_test': False, | |
| 4033 'cmd_args': 'GLenumTextureTarget target, GLint level, ' | |
| 4034 'GLintTextureInternalFormat internalformat, ' | |
| 4035 'GLsizei width, GLsizei height, ' | |
| 4036 'GLintTextureBorder border, ' | |
| 4037 'GLenumTextureFormat format, GLenumPixelType type, ' | |
| 4038 'const void* pixels, ' | |
| 4039 'uint32_t async_upload_token, ' | |
| 4040 'void* sync_data', | |
| 4041 'extension': True, | |
| 4042 'chromium': True, | |
| 4043 'trace_level': 2, | |
| 4044 }, | |
| 4045 'AsyncTexSubImage2DCHROMIUM': { | |
| 4046 'type': 'Manual', | |
| 4047 'data_transfer_methods': ['shm'], | |
| 4048 'client_test': False, | |
| 4049 'cmd_args': 'GLenumTextureTarget target, GLint level, ' | |
| 4050 'GLint xoffset, GLint yoffset, ' | |
| 4051 'GLsizei width, GLsizei height, ' | |
| 4052 'GLenumTextureFormat format, GLenumPixelType type, ' | |
| 4053 'const void* data, ' | |
| 4054 'uint32_t async_upload_token, ' | |
| 4055 'void* sync_data', | |
| 4056 'extension': True, | |
| 4057 'chromium': True, | |
| 4058 'trace_level': 2, | |
| 4059 }, | |
| 4060 'WaitAsyncTexImage2DCHROMIUM': { | |
| 4061 'type': 'Manual', | |
| 4062 'client_test': False, | |
| 4063 'extension': True, | |
| 4064 'chromium': True, | |
| 4065 'trace_level': 1, | |
| 4066 }, | |
| 4067 'WaitAllAsyncTexImage2DCHROMIUM': { | |
| 4068 'type': 'Manual', | |
| 4069 'client_test': False, | |
| 4070 'extension': True, | |
| 4071 'chromium': True, | |
| 4072 'trace_level': 1, | |
| 4073 }, | |
| 4074 'DiscardFramebufferEXT': { | 4028 'DiscardFramebufferEXT': { |
| 4075 'type': 'PUTn', | 4029 'type': 'PUTn', |
| 4076 'count': 1, | 4030 'count': 1, |
| 4077 'decoder_func': 'DoDiscardFramebufferEXT', | 4031 'decoder_func': 'DoDiscardFramebufferEXT', |
| 4078 'unit_test': False, | 4032 'unit_test': False, |
| 4079 'client_test': False, | 4033 'client_test': False, |
| 4080 'extension_flag': 'ext_discard_framebuffer', | 4034 'extension_flag': 'ext_discard_framebuffer', |
| 4081 'trace_level': 2, | 4035 'trace_level': 2, |
| 4082 }, | 4036 }, |
| 4083 'LoseContextCHROMIUM': { | 4037 'LoseContextCHROMIUM': { |
| (...skipping 6969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11053 Format(gen.generated_cpp_filenames) | 11007 Format(gen.generated_cpp_filenames) |
| 11054 | 11008 |
| 11055 if gen.errors > 0: | 11009 if gen.errors > 0: |
| 11056 print "%d errors" % gen.errors | 11010 print "%d errors" % gen.errors |
| 11057 return 1 | 11011 return 1 |
| 11058 return 0 | 11012 return 0 |
| 11059 | 11013 |
| 11060 | 11014 |
| 11061 if __name__ == '__main__': | 11015 if __name__ == '__main__': |
| 11062 sys.exit(main(sys.argv[1:])) | 11016 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |