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

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

Issue 10880072: Remove left over debug line from cmd-buf script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | no next file » | 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 os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
(...skipping 4617 matching lines...) Expand 10 before | Expand all | Expand 10 after
4628 'GLfloat': 'float', 4628 'GLfloat': 'float',
4629 'GLclampf': 'float', 4629 'GLclampf': 'float',
4630 } 4630 }
4631 need_validation_ = ['GLsizei*', 'GLboolean*', 'GLenum*', 'GLint*'] 4631 need_validation_ = ['GLsizei*', 'GLboolean*', 'GLenum*', 'GLint*']
4632 4632
4633 def __init__(self, name, type): 4633 def __init__(self, name, type):
4634 self.name = name 4634 self.name = name
4635 self.optional = type.endswith("Optional*") 4635 self.optional = type.endswith("Optional*")
4636 if self.optional: 4636 if self.optional:
4637 type = type[:-9] + "*" 4637 type = type[:-9] + "*"
4638 print name, type
4639 self.type = type 4638 self.type = type
4640 4639
4641 if type in self.cmd_type_map_: 4640 if type in self.cmd_type_map_:
4642 self.cmd_type = self.cmd_type_map_[type] 4641 self.cmd_type = self.cmd_type_map_[type]
4643 else: 4642 else:
4644 self.cmd_type = 'uint32' 4643 self.cmd_type = 'uint32'
4645 4644
4646 def IsPointer(self): 4645 def IsPointer(self):
4647 """Returns true if argument is a pointer.""" 4646 """Returns true if argument is a pointer."""
4648 return False 4647 return False
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
6343 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 6342 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
6344 6343
6345 if gen.errors > 0: 6344 if gen.errors > 0:
6346 print "%d errors" % gen.errors 6345 print "%d errors" % gen.errors
6347 return 1 6346 return 1
6348 return 0 6347 return 0
6349 6348
6350 6349
6351 if __name__ == '__main__': 6350 if __name__ == '__main__':
6352 sys.exit(main(sys.argv[1:])) 6351 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698