| Index: gpu/command_buffer/build_gles2_cmd_buffer.py
|
| diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
|
| index 340278b27c90073785f11b5080a4b600ab7ce052..d0eb566509f55c93929a8229dd2d7d6d91f01cab 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):
|
|
|