diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 01:00:50 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 01:00:50 +0000 |
commit | a4950202fd6a98ab0ec52cb7915cfb5cadc5c985 (patch) | |
tree | fd9e7aee827037c177d26c59280f215be3c1607c /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | 9b5d2d3e4ab303d20b0b21375140dc3550584ada (diff) | |
download | chromium_src-a4950202fd6a98ab0ec52cb7915cfb5cadc5c985.zip chromium_src-a4950202fd6a98ab0ec52cb7915cfb5cadc5c985.tar.gz chromium_src-a4950202fd6a98ab0ec52cb7915cfb5cadc5c985.tar.bz2 |
Remove overly agressive ASSERTs on output GL parameters.
BUG=144022
Review URL: https://chromiumcodereview.appspot.com/10860082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 340278b..d0eb566 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -4632,6 +4632,10 @@ class Argument(object): def __init__(self, name, type): self.name = name + self.optional = type.endswith("Optional*") + if self.optional: + type = type[:-9] + "*" + print name, type self.type = type if type in self.cmd_type_map_: @@ -4712,8 +4716,9 @@ class Argument(object): if len(parts) > 1: return if parts[0] in self.need_validation_: - file.Write(" GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(%s, %s);\n" % - (self.type[:-1], self.name)) + file.Write( + " GPU_CLIENT_VALIDATE_DESTINATION_%sINITALIZATION(%s, %s);\n" % + ("OPTIONAL_" if self.optional else "", self.type[:-1], self.name)) def WriteGetAddress(self, file): |