| Index: gpu/command_buffer/build_gles2_cmd_buffer.py
|
| ===================================================================
|
| --- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 67327)
|
| +++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
|
| @@ -2125,11 +2125,6 @@
|
| else:
|
| self.WriteGLES2ImplementationDeclaration(func, file)
|
|
|
| - def WriteDestinationInitalizationValidation(self, func, file):
|
| - """Writes the client side destintion initialization validation."""
|
| - for arg in func.GetOriginalArgs():
|
| - arg.WriteDestinationInitalizationValidation(file, func)
|
| -
|
| def WriteImmediateCmdComputeSize(self, func, file):
|
| """Writes the size computation code for the immediate version of a cmd."""
|
| file.Write(" static uint32 ComputeSize(uint32 size_in_bytes) {\n")
|
| @@ -3985,7 +3980,6 @@
|
| 'GLfloat': 'float',
|
| 'GLclampf': 'float',
|
| }
|
| - need_validation_ = ['GLsizei*', 'GLboolean*', 'GLenum*', 'GLint*']
|
|
|
| def __init__(self, name, type):
|
| self.name = name
|
| @@ -4035,20 +4029,6 @@
|
| """Writes the validation code for an argument."""
|
| pass
|
|
|
| - def WriteDestinationInitalizationValidation(self, file, func):
|
| - """Writes the client side destintion initialization validation."""
|
| - pass
|
| -
|
| - def WriteDestinationInitalizationValidatationIfNeeded(self, file, func):
|
| - """Writes the client side destintion initialization validation if needed."""
|
| - parts = self.type.split(" ")
|
| - if len(parts) > 1:
|
| - return
|
| - if parts[0] in self.need_validation_:
|
| - file.Write(" GL_CLIENT_VALIDATE_DESTINATION_INITALIZATION(%s, %s);\n" %
|
| - (self.type[:-1], self.name))
|
| -
|
| -
|
| def WriteGetAddress(self, file):
|
| """Writes the code to get the address this argument refers to."""
|
| pass
|
| @@ -4233,11 +4213,7 @@
|
| """Overridden from Argument."""
|
| return None
|
|
|
| - def WriteDestinationInitalizationValidation(self, file, func):
|
| - """Overridden from Argument."""
|
| - self.WriteDestinationInitalizationValidatationIfNeeded(file, func)
|
|
|
| -
|
| class BucketPointerArgument(Argument):
|
| """A class that represents an bucket argument to a function."""
|
|
|
| @@ -4262,11 +4238,7 @@
|
| """Overridden from Argument."""
|
| return None
|
|
|
| - def WriteDestinationInitalizationValidation(self, file, func):
|
| - """Overridden from Argument."""
|
| - self.WriteDestinationInitalizationValidatationIfNeeded(file, func)
|
|
|
| -
|
| class PointerArgument(Argument):
|
| """A class that represents a pointer argument to a function."""
|
|
|
| @@ -4336,11 +4308,7 @@
|
| return InputStringBucketArgument(self.name, self.type)
|
| return BucketPointerArgument(self.name, self.type)
|
|
|
| - def WriteDestinationInitalizationValidation(self, file, func):
|
| - """Overridden from Argument."""
|
| - self.WriteDestinationInitalizationValidatationIfNeeded(file, func)
|
|
|
| -
|
| class InputStringBucketArgument(Argument):
|
| """An string input argument where the string is passed in a bucket."""
|
|
|
| @@ -4661,10 +4629,6 @@
|
| """Writes the GLES2 Implemention declaration."""
|
| self.type_handler.WriteGLES2ImplementationHeader(self, file)
|
|
|
| - def WriteDestinationInitalizationValidation(self, file):
|
| - """Writes the client side destintion initialization validation."""
|
| - self.type_handler.WriteDestinationInitalizationValidation(self, file)
|
| -
|
| def WriteFormatTest(self, file):
|
| """Writes the cmd's format test."""
|
| self.type_handler.WriteFormatTest(self, file)
|
| @@ -5149,7 +5113,6 @@
|
| file.Write("%s GLES2%s(%s) {\n" %
|
| (func.return_type, func.name,
|
| func.MakeTypedOriginalArgString("")))
|
| - func.WriteDestinationInitalizationValidation(file)
|
| comma = ""
|
| if len(func.GetOriginalArgs()):
|
| comma = " << "
|
|
|