| 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 'decoder_func': 'DoConsumeTextureCHROMIUM', | 1376 'decoder_func': 'DoConsumeTextureCHROMIUM', |
| 1377 'impl_func': False, | 1377 'impl_func': False, |
| 1378 'type': 'PUT', | 1378 'type': 'PUT', |
| 1379 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM | 1379 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM |
| 1380 'unit_test': False, | 1380 'unit_test': False, |
| 1381 'client_test': False, | 1381 'client_test': False, |
| 1382 'extension': True, | 1382 'extension': True, |
| 1383 'chromium': True, | 1383 'chromium': True, |
| 1384 'trace_level': 1, | 1384 'trace_level': 1, |
| 1385 }, | 1385 }, |
| 1386 'CreateAndConsumeTextureCHROMIUM': { |
| 1387 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', |
| 1388 'impl_func': False, |
| 1389 'type': 'HandWritten', |
| 1390 'unit_test': False, |
| 1391 'client_test': False, |
| 1392 'extension': True, |
| 1393 'chromium': True, |
| 1394 }, |
| 1386 'ClearStencil': { | 1395 'ClearStencil': { |
| 1387 'type': 'StateSet', | 1396 'type': 'StateSet', |
| 1388 'state': 'ClearStencil', | 1397 'state': 'ClearStencil', |
| 1389 }, | 1398 }, |
| 1390 'EnableFeatureCHROMIUM': { | 1399 'EnableFeatureCHROMIUM': { |
| 1391 'type': 'Custom', | 1400 'type': 'Custom', |
| 1392 'immediate': False, | 1401 'immediate': False, |
| 1393 'decoder_func': 'DoEnableFeatureCHROMIUM', | 1402 'decoder_func': 'DoEnableFeatureCHROMIUM', |
| 1394 'expectation': False, | 1403 'expectation': False, |
| 1395 'cmd_args': 'GLuint bucket_id, GLint* result', | 1404 'cmd_args': 'GLuint bucket_id, GLint* result', |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1969 'decoder_func': 'DoProduceTextureCHROMIUM', | 1978 'decoder_func': 'DoProduceTextureCHROMIUM', |
| 1970 'impl_func': False, | 1979 'impl_func': False, |
| 1971 'type': 'PUT', | 1980 'type': 'PUT', |
| 1972 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM | 1981 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM |
| 1973 'unit_test': False, | 1982 'unit_test': False, |
| 1974 'client_test': False, | 1983 'client_test': False, |
| 1975 'extension': True, | 1984 'extension': True, |
| 1976 'chromium': True, | 1985 'chromium': True, |
| 1977 'trace_level': 1, | 1986 'trace_level': 1, |
| 1978 }, | 1987 }, |
| 1988 'ProduceTextureDirectCHROMIUM': { |
| 1989 'decoder_func': 'DoProduceTextureDirectCHROMIUM', |
| 1990 'impl_func': False, |
| 1991 'type': 'PUT', |
| 1992 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM |
| 1993 'unit_test': False, |
| 1994 'client_test': False, |
| 1995 'extension': True, |
| 1996 'chromium': True, |
| 1997 'trace_level': 1, |
| 1998 }, |
| 1979 'RenderbufferStorage': { | 1999 'RenderbufferStorage': { |
| 1980 'decoder_func': 'DoRenderbufferStorage', | 2000 'decoder_func': 'DoRenderbufferStorage', |
| 1981 'gl_test_func': 'glRenderbufferStorageEXT', | 2001 'gl_test_func': 'glRenderbufferStorageEXT', |
| 1982 'expectation': False, | 2002 'expectation': False, |
| 1983 }, | 2003 }, |
| 1984 'RenderbufferStorageMultisampleCHROMIUM': { | 2004 'RenderbufferStorageMultisampleCHROMIUM': { |
| 1985 'cmd_comment': | 2005 'cmd_comment': |
| 1986 '// GL_CHROMIUM_framebuffer_multisample\n', | 2006 '// GL_CHROMIUM_framebuffer_multisample\n', |
| 1987 'decoder_func': 'DoRenderbufferStorageMultisampleCHROMIUM', | 2007 'decoder_func': 'DoRenderbufferStorageMultisampleCHROMIUM', |
| 1988 'gl_test_func': 'glRenderbufferStorageMultisampleCHROMIUM', | 2008 'gl_test_func': 'glRenderbufferStorageMultisampleCHROMIUM', |
| (...skipping 6349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8338 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8358 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
| 8339 | 8359 |
| 8340 if gen.errors > 0: | 8360 if gen.errors > 0: |
| 8341 print "%d errors" % gen.errors | 8361 print "%d errors" % gen.errors |
| 8342 return 1 | 8362 return 1 |
| 8343 return 0 | 8363 return 0 |
| 8344 | 8364 |
| 8345 | 8365 |
| 8346 if __name__ == '__main__': | 8366 if __name__ == '__main__': |
| 8347 sys.exit(main(sys.argv[1:])) | 8367 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |