summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index d610e5b..331159c 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -2125,11 +2125,6 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) {
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 @@ class Argument(object):
'GLfloat': 'float',
'GLclampf': 'float',
}
- need_validation_ = ['GLsizei*', 'GLboolean*', 'GLenum*', 'GLint*']
def __init__(self, name, type):
self.name = name
@@ -4035,20 +4029,6 @@ class Argument(object):
"""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,10 +4213,6 @@ class ImmediatePointerArgument(Argument):
"""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,10 +4238,6 @@ class BucketPointerArgument(Argument):
"""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,10 +4308,6 @@ class PointerArgument(Argument):
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 @@ class Function(object):
"""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 @@ class GLGenerator(object):
file.Write("%s GLES2%s(%s) {\n" %
(func.return_type, func.name,
func.MakeTypedOriginalArgString("")))
- func.WriteDestinationInitalizationValidation(file)
comma = ""
if len(func.GetOriginalArgs()):
comma = " << "