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

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

Issue 3058043: Clear render buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | gpu/command_buffer/service/framebuffer_manager.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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """code generator for GLES2 command buffers.""" 7 """code generator for GLES2 command buffers."""
8 8
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 'gen_func': 'GenTextures', 1031 'gen_func': 'GenTextures',
1032 }, 1032 },
1033 'BufferData': {'type': 'Manual', 'immediate': True}, 1033 'BufferData': {'type': 'Manual', 'immediate': True},
1034 'BufferSubData': {'type': 'Data', 'decoder_func': 'DoBufferSubData'}, 1034 'BufferSubData': {'type': 'Data', 'decoder_func': 'DoBufferSubData'},
1035 'CheckFramebufferStatus': { 1035 'CheckFramebufferStatus': {
1036 'type': 'Is', 1036 'type': 'Is',
1037 'decoder_func': 'DoCheckFramebufferStatus', 1037 'decoder_func': 'DoCheckFramebufferStatus',
1038 'gl_test_func': 'glCheckFramebufferStatusEXT', 1038 'gl_test_func': 'glCheckFramebufferStatusEXT',
1039 'result': ['GLenum'], 1039 'result': ['GLenum'],
1040 }, 1040 },
1041 'ClearDepthf': {'decoder_func': 'glClearDepth'}, 1041 'ClearColor': {'decoder_func': 'DoClearColor'},
1042 'ClearDepthf': {
1043 'decoder_func': 'DoClearDepthf',
1044 'gl_test_func': 'glClearDepth',
1045 },
1046 'ColorMask': {'decoder_func': 'DoColorMask'},
1047 'ClearStencil': {'decoder_func': 'DoClearStencil'},
1042 'CommandBufferEnable': { 1048 'CommandBufferEnable': {
1043 'type': 'Custom', 1049 'type': 'Custom',
1044 'immediate': False, 1050 'immediate': False,
1045 'decoder_func': 'DoCommandBufferEnable', 1051 'decoder_func': 'DoCommandBufferEnable',
1046 'expectation': False, 1052 'expectation': False,
1047 'cmd_args': 'GLuint bucket_id, GLint* result', 1053 'cmd_args': 'GLuint bucket_id, GLint* result',
1048 'result': ['GLint'], 1054 'result': ['GLint'],
1049 }, 1055 },
1050 'CompileShader': {'decoder_func': 'DoCompileShader', 'unit_test': False}, 1056 'CompileShader': {'decoder_func': 'DoCompileShader', 'unit_test': False},
1051 'CompressedTexImage2D': { 1057 'CompressedTexImage2D': {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 'DeleteShader': {'type': 'Delete', 'decoder_func': 'DoDeleteShader'}, 1089 'DeleteShader': {'type': 'Delete', 'decoder_func': 'DoDeleteShader'},
1084 'DeleteSharedIds': { 1090 'DeleteSharedIds': {
1085 'type': 'Custom', 1091 'type': 'Custom',
1086 'decoder_func': 'DoDeleteSharedIds', 1092 'decoder_func': 'DoDeleteSharedIds',
1087 'impl_func': False, 1093 'impl_func': False,
1088 'expectation': False, 1094 'expectation': False,
1089 'immediate': False, 1095 'immediate': False,
1090 }, 1096 },
1091 'DeleteTextures': {'type': 'DELn'}, 1097 'DeleteTextures': {'type': 'DELn'},
1092 'DepthRangef': {'decoder_func': 'glDepthRange'}, 1098 'DepthRangef': {'decoder_func': 'glDepthRange'},
1099 'DepthMask': {'decoder_func': 'DoDepthMask'},
1093 'DetachShader': {'decoder_func': 'DoDetachShader'}, 1100 'DetachShader': {'decoder_func': 'DoDetachShader'},
1101 'Disable': {
1102 'decoder_func': 'DoDisable',
1103 },
1094 'DisableVertexAttribArray': { 1104 'DisableVertexAttribArray': {
1095 'decoder_func': 'DoDisableVertexAttribArray', 1105 'decoder_func': 'DoDisableVertexAttribArray',
1096 'impl_decl': False, 1106 'impl_decl': False,
1097 }, 1107 },
1098 'DrawArrays': { 1108 'DrawArrays': {
1099 'decoder_func': 'DoDrawArrays', 1109 'decoder_func': 'DoDrawArrays',
1100 'unit_test': False, 1110 'unit_test': False,
1101 'impl_decl': False, 1111 'impl_decl': False,
1102 }, 1112 },
1103 'DrawElements': { 1113 'DrawElements': {
1104 'type': 'Manual', 1114 'type': 'Manual',
1105 'cmd_args': 'GLenum mode, GLsizei count, GLenum type, GLuint index_offset', 1115 'cmd_args': 'GLenum mode, GLsizei count, GLenum type, GLuint index_offset',
1106 }, 1116 },
1117 'Enable': {
1118 'decoder_func': 'DoEnable',
1119 },
1107 'EnableVertexAttribArray': { 1120 'EnableVertexAttribArray': {
1108 'decoder_func': 'DoEnableVertexAttribArray', 1121 'decoder_func': 'DoEnableVertexAttribArray',
1109 'impl_decl': False, 1122 'impl_decl': False,
1110 }, 1123 },
1111 'Finish': { 1124 'Finish': {
1112 'impl_func': False, 1125 'impl_func': False,
1113 'decoder_func': 'glFlush', 1126 'decoder_func': 'glFlush',
1114 'gl_test_func': 'glFlush', 1127 'gl_test_func': 'glFlush',
1115 }, 1128 },
1116 'Flush': {'impl_func': False}, 1129 'Flush': {'impl_func': False},
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 }, 1381 },
1369 'ShaderBinary': {'type': 'Custom'}, 1382 'ShaderBinary': {'type': 'Custom'},
1370 'ShaderSource': { 1383 'ShaderSource': {
1371 'type': 'Manual', 1384 'type': 'Manual',
1372 'immediate': True, 1385 'immediate': True,
1373 'bucket': True, 1386 'bucket': True,
1374 'needs_size': True, 1387 'needs_size': True,
1375 'cmd_args': 1388 'cmd_args':
1376 'GLuint shader, const char* data', 1389 'GLuint shader, const char* data',
1377 }, 1390 },
1391 'StencilMask': {'decoder_func': 'DoStencilMask'},
1392 'StencilMaskSeparate': {'decoder_func': 'DoStencilMaskSeparate'},
1378 'SwapBuffers': { 1393 'SwapBuffers': {
1379 'type': 'Custom', 1394 'type': 'Custom',
1380 'impl_func': False, 1395 'impl_func': False,
1381 'unit_test': False, 1396 'unit_test': False,
1382 }, 1397 },
1383 'TexImage2D': {'type': 'Manual', 'immediate': True}, 1398 'TexImage2D': {'type': 'Manual', 'immediate': True},
1384 'TexParameterf': {'decoder_func': 'DoTexParameterf'}, 1399 'TexParameterf': {'decoder_func': 'DoTexParameterf'},
1385 'TexParameteri': {'decoder_func': 'DoTexParameteri'}, 1400 'TexParameteri': {'decoder_func': 'DoTexParameteri'},
1386 'TexParameterfv': { 1401 'TexParameterfv': {
1387 'type': 'PUT', 1402 'type': 'PUT',
(...skipping 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after
5081 5096
5082 if options.generate_docs: 5097 if options.generate_docs:
5083 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") 5098 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h")
5084 5099
5085 if gen.errors > 0: 5100 if gen.errors > 0:
5086 print "%d errors" % gen.errors 5101 print "%d errors" % gen.errors
5087 sys.exit(1) 5102 sys.exit(1)
5088 5103
5089 if __name__ == '__main__': 5104 if __name__ == '__main__':
5090 main(sys.argv[1:]) 5105 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698