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

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

Issue 182213003: Add new PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0 pepper interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_opengles2ext_dev.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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 # This table specifies the different pepper interfaces that are supported for 1175 # This table specifies the different pepper interfaces that are supported for
1176 # GL commands. 'dev' is true if it's a dev interface. 1176 # GL commands. 'dev' is true if it's a dev interface.
1177 _PEPPER_INTERFACES = [ 1177 _PEPPER_INTERFACES = [
1178 {'name': '', 'dev': False}, 1178 {'name': '', 'dev': False},
1179 {'name': 'InstancedArrays', 'dev': False}, 1179 {'name': 'InstancedArrays', 'dev': False},
1180 {'name': 'FramebufferBlit', 'dev': False}, 1180 {'name': 'FramebufferBlit', 'dev': False},
1181 {'name': 'FramebufferMultisample', 'dev': False}, 1181 {'name': 'FramebufferMultisample', 'dev': False},
1182 {'name': 'ChromiumEnableFeature', 'dev': False}, 1182 {'name': 'ChromiumEnableFeature', 'dev': False},
1183 {'name': 'ChromiumMapSub', 'dev': False}, 1183 {'name': 'ChromiumMapSub', 'dev': False},
1184 {'name': 'Query', 'dev': False}, 1184 {'name': 'Query', 'dev': False},
1185 {'name': 'DrawBuffers', 'dev': True},
1185 ] 1186 ]
1186 1187
1187 # This table specifies types and other special data for the commands that 1188 # This table specifies types and other special data for the commands that
1188 # will be generated. 1189 # will be generated.
1189 # 1190 #
1190 # Must match function names specified in "cmd_buffer_functions.txt". 1191 # Must match function names specified in "cmd_buffer_functions.txt".
1191 # 1192 #
1192 # cmd_comment: A comment added to the cmd format. 1193 # cmd_comment: A comment added to the cmd format.
1193 # type: defines which handler will be used to generate code. 1194 # type: defines which handler will be used to generate code.
1194 # decoder_func: defines which function to call in the decoder to execute the 1195 # decoder_func: defines which function to call in the decoder to execute the
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 'defer_draws': True, 2283 'defer_draws': True,
2283 }, 2284 },
2284 'DrawBuffersEXT': { 2285 'DrawBuffersEXT': {
2285 'type': 'PUTn', 2286 'type': 'PUTn',
2286 'decoder_func': 'DoDrawBuffersEXT', 2287 'decoder_func': 'DoDrawBuffersEXT',
2287 'data_type': 'GLenum', 2288 'data_type': 'GLenum',
2288 'count': 1, 2289 'count': 1,
2289 'client_test': False, 2290 'client_test': False,
2290 'unit_test': False, 2291 'unit_test': False,
2291 'extension': True, 2292 'extension': True,
2293 'pepper_interface': 'DrawBuffers',
2292 }, 2294 },
2293 'DrawElementsInstancedANGLE': { 2295 'DrawElementsInstancedANGLE': {
2294 'type': 'Manual', 2296 'type': 'Manual',
2295 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' 2297 'cmd_args': 'GLenumDrawMode mode, GLsizei count, '
2296 'GLenumIndexType type, GLuint index_offset, GLsizei primcount', 2298 'GLenumIndexType type, GLuint index_offset, GLsizei primcount',
2297 'extension': True, 2299 'extension': True,
2298 'unit_test': False, 2300 'unit_test': False,
2299 'client_test': False, 2301 'client_test': False,
2300 'pepper_interface': 'InstancedArrays', 2302 'pepper_interface': 'InstancedArrays',
2301 'defer_draws': True, 2303 'defer_draws': True,
(...skipping 5647 matching lines...) Expand 10 before | Expand all | Expand 10 after
7949 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) 7951 "ppapi/shared_impl/ppb_opengles2_shared.cc"])
7950 7952
7951 if gen.errors > 0: 7953 if gen.errors > 0:
7952 print "%d errors" % gen.errors 7954 print "%d errors" % gen.errors
7953 return 1 7955 return 1
7954 return 0 7956 return 0
7955 7957
7956 7958
7957 if __name__ == '__main__': 7959 if __name__ == '__main__':
7958 sys.exit(main(sys.argv[1:])) 7960 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_opengles2ext_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698