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

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

Issue 10440019: Add support for GL_CHROMIUM_pixel_transfer_buffer_object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 'unit_test': False, 1150 'unit_test': False,
1151 'impl_func': False, 1151 'impl_func': False,
1152 'client_test': False, 1152 'client_test': False,
1153 }, 1153 },
1154 'AttachShader': {'decoder_func': 'DoAttachShader'}, 1154 'AttachShader': {'decoder_func': 'DoAttachShader'},
1155 'BindAttribLocation': {'type': 'GLchar', 'bucket': True, 'needs_size': True}, 1155 'BindAttribLocation': {'type': 'GLchar', 'bucket': True, 'needs_size': True},
1156 'BindBuffer': { 1156 'BindBuffer': {
1157 'type': 'Bind', 1157 'type': 'Bind',
1158 'decoder_func': 'DoBindBuffer', 1158 'decoder_func': 'DoBindBuffer',
1159 'gen_func': 'GenBuffersARB', 1159 'gen_func': 'GenBuffersARB',
1160 'impl_func': False,
1160 }, 1161 },
1161 'BindFramebuffer': { 1162 'BindFramebuffer': {
1162 'type': 'Bind', 1163 'type': 'Bind',
1163 'decoder_func': 'DoBindFramebuffer', 1164 'decoder_func': 'DoBindFramebuffer',
1164 'gl_test_func': 'glBindFramebufferEXT', 1165 'gl_test_func': 'glBindFramebufferEXT',
1165 'gen_func': 'GenFramebuffersEXT', 1166 'gen_func': 'GenFramebuffersEXT',
1166 }, 1167 },
1167 'BindRenderbuffer': { 1168 'BindRenderbuffer': {
1168 'type': 'Bind', 1169 'type': 'Bind',
1169 'decoder_func': 'DoBindRenderbuffer', 1170 'decoder_func': 'DoBindRenderbuffer',
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 }, 1717 },
1717 'IsTexture': { 1718 'IsTexture': {
1718 'type': 'Is', 1719 'type': 'Is',
1719 'decoder_func': 'DoIsTexture', 1720 'decoder_func': 'DoIsTexture',
1720 'expectation': False, 1721 'expectation': False,
1721 }, 1722 },
1722 'LinkProgram': { 1723 'LinkProgram': {
1723 'decoder_func': 'DoLinkProgram', 1724 'decoder_func': 'DoLinkProgram',
1724 'impl_func': False, 1725 'impl_func': False,
1725 }, 1726 },
1727 'MapBufferCHROMIUM': {
1728 'gen_cmd': False,
1729 'extension': True,
1730 'chromium': True,
1731 'client_test': False,
1732 'chromium': True,
1733 },
1726 'MapBufferSubDataCHROMIUM': { 1734 'MapBufferSubDataCHROMIUM': {
1727 'gen_cmd': False, 1735 'gen_cmd': False,
1728 'extension': True, 1736 'extension': True,
1729 'chromium': True, 1737 'chromium': True,
1730 'client_test': False, 1738 'client_test': False,
1731 'pepper_interface': 'ChromiumMapSub', 1739 'pepper_interface': 'ChromiumMapSub',
1732 }, 1740 },
1733 'MapTexSubImage2DCHROMIUM': { 1741 'MapTexSubImage2DCHROMIUM': {
1734 'gen_cmd': False, 1742 'gen_cmd': False,
1735 'extension': True, 1743 'extension': True,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 'data_type': 'GLfloat', 1946 'data_type': 'GLfloat',
1939 'count': 9, 1947 'count': 9,
1940 'decoder_func': 'DoUniformMatrix3fv', 1948 'decoder_func': 'DoUniformMatrix3fv',
1941 }, 1949 },
1942 'UniformMatrix4fv': { 1950 'UniformMatrix4fv': {
1943 'type': 'PUTn', 1951 'type': 'PUTn',
1944 'data_type': 'GLfloat', 1952 'data_type': 'GLfloat',
1945 'count': 16, 1953 'count': 16,
1946 'decoder_func': 'DoUniformMatrix4fv', 1954 'decoder_func': 'DoUniformMatrix4fv',
1947 }, 1955 },
1956 'UnmapBufferCHROMIUM': {
1957 'gen_cmd': False,
1958 'extension': True,
1959 'chromium': True,
1960 'client_test': False,
1961 'chromium': True,
1962 },
1948 'UnmapBufferSubDataCHROMIUM': { 1963 'UnmapBufferSubDataCHROMIUM': {
1949 'gen_cmd': False, 1964 'gen_cmd': False,
1950 'extension': True, 1965 'extension': True,
1951 'chromium': True, 1966 'chromium': True,
1952 'client_test': False, 1967 'client_test': False,
1953 'pepper_interface': 'ChromiumMapSub', 1968 'pepper_interface': 'ChromiumMapSub',
1954 }, 1969 },
1955 'UnmapTexSubImage2DCHROMIUM': { 1970 'UnmapTexSubImage2DCHROMIUM': {
1956 'gen_cmd': False, 1971 'gen_cmd': False,
1957 'extension': True, 1972 'extension': True,
(...skipping 5403 matching lines...) Expand 10 before | Expand all | Expand 10 after
7361 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 7376 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
7362 7377
7363 if gen.errors > 0: 7378 if gen.errors > 0:
7364 print "%d errors" % gen.errors 7379 print "%d errors" % gen.errors
7365 return 1 7380 return 1
7366 return 0 7381 return 0
7367 7382
7368 7383
7369 if __name__ == '__main__': 7384 if __name__ == '__main__':
7370 sys.exit(main(sys.argv[1:])) 7385 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698