Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Unset texture and texture_ref after deleting Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/buffer_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after
2455 'client_test': False, 2455 'client_test': False,
2456 'decoder_func': 'DoTraceEndCHROMIUM', 2456 'decoder_func': 'DoTraceEndCHROMIUM',
2457 'unit_test': False, 2457 'unit_test': False,
2458 'extension': True, 2458 'extension': True,
2459 'chromium': True, 2459 'chromium': True,
2460 }, 2460 },
2461 'AsyncTexImage2DCHROMIUM': { 2461 'AsyncTexImage2DCHROMIUM': {
2462 'type': 'Manual', 2462 'type': 'Manual',
2463 'immediate': False, 2463 'immediate': False,
2464 'client_test': False, 2464 'client_test': False,
2465 'cmd_args': 'GLenumTextureTarget target, GLint level, '
2466 'GLintTextureInternalFormat internalformat, '
2467 'GLsizei width, GLsizei height, '
2468 'GLintTextureBorder border, '
2469 'GLenumTextureFormat format, GLenumPixelType type, '
2470 'const void* pixels, '
2471 'uint32 async_upload_token, '
2472 'void* sync_data',
2465 'extension': True, 2473 'extension': True,
2466 'chromium': True, 2474 'chromium': True,
2467 }, 2475 },
2468 'AsyncTexSubImage2DCHROMIUM': { 2476 'AsyncTexSubImage2DCHROMIUM': {
2469 'type': 'Manual', 2477 'type': 'Manual',
2470 'immediate': False, 2478 'immediate': False,
2471 'client_test': False, 2479 'client_test': False,
2480 'cmd_args': 'GLenumTextureTarget target, GLint level, '
2481 'GLint xoffset, GLint yoffset, '
2482 'GLsizei width, GLsizei height, '
2483 'GLenumTextureFormat format, GLenumPixelType type, '
2484 'const void* data, '
2485 'uint32 async_upload_token, '
2486 'void* sync_data',
2472 'extension': True, 2487 'extension': True,
2473 'chromium': True, 2488 'chromium': True,
2474 }, 2489 },
2475 'WaitAsyncTexImage2DCHROMIUM': { 2490 'WaitAsyncTexImage2DCHROMIUM': {
2476 'type': 'Manual', 2491 'type': 'Manual',
2477 'immediate': False, 2492 'immediate': False,
2478 'client_test': False, 2493 'client_test': False,
2479 'extension': True, 2494 'extension': True,
2480 'chromium': True, 2495 'chromium': True,
2481 }, 2496 },
2497 'WaitAllAsyncTexImage2DCHROMIUM': {
2498 'type': 'Manual',
2499 'immediate': False,
2500 'client_test': False,
2501 'extension': True,
2502 'chromium': True,
2503 },
2482 'DiscardFramebufferEXT': { 2504 'DiscardFramebufferEXT': {
2483 'type': 'PUTn', 2505 'type': 'PUTn',
2484 'count': 1, 2506 'count': 1,
2485 'data_type': 'GLenum', 2507 'data_type': 'GLenum',
2486 'cmd_args': 'GLenum target, GLsizei count, ' 2508 'cmd_args': 'GLenum target, GLsizei count, '
2487 'const GLenum* attachments', 2509 'const GLenum* attachments',
2488 'decoder_func': 'DoDiscardFramebufferEXT', 2510 'decoder_func': 'DoDiscardFramebufferEXT',
2489 'unit_test': False, 2511 'unit_test': False,
2490 'client_test': False, 2512 'client_test': False,
2491 'extension': True, 2513 'extension': True,
(...skipping 5391 matching lines...) Expand 10 before | Expand all | Expand 10 after
7883 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) 7905 "ppapi/shared_impl/ppb_opengles2_shared.cc"])
7884 7906
7885 if gen.errors > 0: 7907 if gen.errors > 0:
7886 print "%d errors" % gen.errors 7908 print "%d errors" % gen.errors
7887 return 1 7909 return 1
7888 return 0 7910 return 0
7889 7911
7890 7912
7891 if __name__ == '__main__': 7913 if __name__ == '__main__':
7892 sys.exit(main(sys.argv[1:])) 7914 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/buffer_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698