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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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/gl2extchromium.h ('k') | gpu/command_buffer/client/BUILD.gn » ('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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 'unit_test': False, 1478 'unit_test': False,
1479 'defer_reads': True, 1479 'defer_reads': True,
1480 }, 1480 },
1481 'CopyTexSubImage2D': { 1481 'CopyTexSubImage2D': {
1482 'decoder_func': 'DoCopyTexSubImage2D', 1482 'decoder_func': 'DoCopyTexSubImage2D',
1483 'defer_reads': True, 1483 'defer_reads': True,
1484 }, 1484 },
1485 'CreateImageCHROMIUM': { 1485 'CreateImageCHROMIUM': {
1486 'type': 'Manual', 1486 'type': 'Manual',
1487 'cmd_args': 1487 'cmd_args':
1488 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage', 1488 'ClientBuffer buffer, GLsizei width, GLsizei height, '
1489 'GLenum internalformat',
1489 'result': ['GLuint'], 1490 'result': ['GLuint'],
1490 'client_test': False, 1491 'client_test': False,
1491 'gen_cmd': False, 1492 'gen_cmd': False,
1492 'expectation': False, 1493 'expectation': False,
1493 'extension': True, 1494 'extension': True,
1494 'chromium': True, 1495 'chromium': True,
1495 }, 1496 },
1496 'DestroyImageCHROMIUM': { 1497 'DestroyImageCHROMIUM': {
1497 'type': 'Manual', 1498 'type': 'Manual',
1498 'client_test': False, 1499 'client_test': False,
1499 'gen_cmd': False, 1500 'gen_cmd': False,
1500 'extension': True, 1501 'extension': True,
1501 'chromium': True, 1502 'chromium': True,
1502 }, 1503 },
1503 'GetImageParameterivCHROMIUM': {
1504 'type': 'Manual',
1505 'client_test': False,
1506 'gen_cmd': False,
1507 'expectation': False,
1508 'extension': True,
1509 'chromium': True,
1510 },
1511 'CreateGpuMemoryBufferImageCHROMIUM': { 1504 'CreateGpuMemoryBufferImageCHROMIUM': {
1512 'type': 'Manual', 1505 'type': 'Manual',
1513 'cmd_args': 1506 'cmd_args':
1514 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage', 1507 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage',
1515 'result': ['GLuint'], 1508 'result': ['GLuint'],
1516 'client_test': False, 1509 'client_test': False,
1517 'gen_cmd': False, 1510 'gen_cmd': False,
1518 'expectation': False, 1511 'expectation': False,
1519 'extension': True, 1512 'extension': True,
1520 'chromium': True, 1513 'chromium': True,
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 'chromium': True, 1978 'chromium': True,
1986 'client_test': False, 1979 'client_test': False,
1987 }, 1980 },
1988 'MapBufferSubDataCHROMIUM': { 1981 'MapBufferSubDataCHROMIUM': {
1989 'gen_cmd': False, 1982 'gen_cmd': False,
1990 'extension': True, 1983 'extension': True,
1991 'chromium': True, 1984 'chromium': True,
1992 'client_test': False, 1985 'client_test': False,
1993 'pepper_interface': 'ChromiumMapSub', 1986 'pepper_interface': 'ChromiumMapSub',
1994 }, 1987 },
1995 'MapImageCHROMIUM': {
1996 'gen_cmd': False,
1997 'extension': True,
1998 'chromium': True,
1999 'client_test': False,
2000 },
2001 'MapTexSubImage2DCHROMIUM': { 1988 'MapTexSubImage2DCHROMIUM': {
2002 'gen_cmd': False, 1989 'gen_cmd': False,
2003 'extension': True, 1990 'extension': True,
2004 'chromium': True, 1991 'chromium': True,
2005 'client_test': False, 1992 'client_test': False,
2006 'pepper_interface': 'ChromiumMapSub', 1993 'pepper_interface': 'ChromiumMapSub',
2007 }, 1994 },
2008 'PixelStorei': {'type': 'Manual'}, 1995 'PixelStorei': {'type': 'Manual'},
2009 'PostSubBufferCHROMIUM': { 1996 'PostSubBufferCHROMIUM': {
2010 'type': 'Custom', 1997 'type': 'Custom',
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 'chromium': True, 2217 'chromium': True,
2231 'client_test': False, 2218 'client_test': False,
2232 }, 2219 },
2233 'UnmapBufferSubDataCHROMIUM': { 2220 'UnmapBufferSubDataCHROMIUM': {
2234 'gen_cmd': False, 2221 'gen_cmd': False,
2235 'extension': True, 2222 'extension': True,
2236 'chromium': True, 2223 'chromium': True,
2237 'client_test': False, 2224 'client_test': False,
2238 'pepper_interface': 'ChromiumMapSub', 2225 'pepper_interface': 'ChromiumMapSub',
2239 }, 2226 },
2240 'UnmapImageCHROMIUM': {
2241 'gen_cmd': False,
2242 'extension': True,
2243 'chromium': True,
2244 'client_test': False,
2245 },
2246 'UnmapTexSubImage2DCHROMIUM': { 2227 'UnmapTexSubImage2DCHROMIUM': {
2247 'gen_cmd': False, 2228 'gen_cmd': False,
2248 'extension': True, 2229 'extension': True,
2249 'chromium': True, 2230 'chromium': True,
2250 'client_test': False, 2231 'client_test': False,
2251 'pepper_interface': 'ChromiumMapSub', 2232 'pepper_interface': 'ChromiumMapSub',
2252 }, 2233 },
2253 'UseProgram': { 2234 'UseProgram': {
2254 'type': 'Bind', 2235 'type': 'Bind',
2255 'decoder_func': 'DoUseProgram', 2236 'decoder_func': 'DoUseProgram',
(...skipping 6387 matching lines...) Expand 10 before | Expand all | Expand 10 after
8643 Format(gen.generated_cpp_filenames) 8624 Format(gen.generated_cpp_filenames)
8644 8625
8645 if gen.errors > 0: 8626 if gen.errors > 0:
8646 print "%d errors" % gen.errors 8627 print "%d errors" % gen.errors
8647 return 1 8628 return 1
8648 return 0 8629 return 0
8649 8630
8650 8631
8651 if __name__ == '__main__': 8632 if __name__ == '__main__':
8652 sys.exit(main(sys.argv[1:])) 8633 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698