webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
process-ogles2-tests Namespace Reference

Classes

class  TestReader
 
class  TxtWriter
 

Functions

def Log (msg)
 
def TransposeMatrix (values, dim)
 
def GetValidTypeName (type_name)
 
def WriteOpen (filename)
 
def ReadFileAsLines (filename)
 
def ReadFile (filename)
 
def Chunkify (list, chunk_size)
 
def GetText (nodelist)
 
def GetElementText (node, name)
 
def GetBoolElement (node, name)
 
def GetModel (node)
 
def RelativizePaths (base, paths, template)
 
def CopyFile (filename, src, dst)
 
def CopyShader (filename, src, dst)
 
def IsOneOf (string, regexs)
 
def CheckForUnknownTags (valid_tags, node, depth=1)
 
def IsFileWeWant (filename)
 
def main (argv)
 

Variables

int MAX_TESTS_PER_SET = 8
 
bool VERBOSE = False
 
list FILTERS
 
string LICENSE
 
 COMMENT_RE
 
 REMOVE_COPYRIGHT_RE
 
 MATRIX_RE = re.compile("Matrix(\\d)")
 
list VALID_UNIFORM_TYPES
 
list SUBSTITUTIONS
 

Function Documentation

◆ CheckForUnknownTags()

def process-ogles2-tests.CheckForUnknownTags (   valid_tags,
  node,
  depth = 1 
)
do a hacky check to make sure we're not missing something.

◆ Chunkify()

def process-ogles2-tests.Chunkify (   list,
  chunk_size 
)
divides an array into chunks of chunk_size

◆ CopyFile()

def process-ogles2-tests.CopyFile (   filename,
  src,
  dst 
)

◆ CopyShader()

def process-ogles2-tests.CopyShader (   filename,
  src,
  dst 
)

◆ GetBoolElement()

def process-ogles2-tests.GetBoolElement (   node,
  name 
)

◆ GetElementText()

def process-ogles2-tests.GetElementText (   node,
  name 
)
Gets the text of an element

◆ GetModel()

def process-ogles2-tests.GetModel (   node)
Gets the model

◆ GetText()

def process-ogles2-tests.GetText (   nodelist)
Gets the text of from a list of nodes

◆ GetValidTypeName()

def process-ogles2-tests.GetValidTypeName (   type_name)

◆ IsFileWeWant()

def process-ogles2-tests.IsFileWeWant (   filename)

◆ IsOneOf()

def process-ogles2-tests.IsOneOf (   string,
  regexs 
)

◆ Log()

def process-ogles2-tests.Log (   msg)

◆ main()

def process-ogles2-tests.main (   argv)
This is the main function.

◆ ReadFile()

def process-ogles2-tests.ReadFile (   filename)

◆ ReadFileAsLines()

def process-ogles2-tests.ReadFileAsLines (   filename)

◆ RelativizePaths()

def process-ogles2-tests.RelativizePaths (   base,
  paths,
  template 
)
converts paths to relative paths

◆ TransposeMatrix()

def process-ogles2-tests.TransposeMatrix (   values,
  dim 
)

◆ WriteOpen()

def process-ogles2-tests.WriteOpen (   filename)

Variable Documentation

◆ COMMENT_RE

process-ogles2-tests.COMMENT_RE
Initial value:
1 = re.compile("/\*\n\*\*\s+Copyright.*?\*/",
2  re.IGNORECASE | re.DOTALL)

◆ FILTERS

list process-ogles2-tests.FILTERS
Initial value:
1 = [
2  re.compile("GL/"),
3 ]

◆ LICENSE

string process-ogles2-tests.LICENSE
Initial value:
1 = """
2 /*
3 ** Copyright (c) 2012 The Khronos Group Inc.
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a
6 ** copy of this software and/or associated documentation files (the
7 ** "Materials"), to deal in the Materials without restriction, including
8 ** without limitation the rights to use, copy, modify, merge, publish,
9 ** distribute, sublicense, and/or sell copies of the Materials, and to
10 ** permit persons to whom the Materials are furnished to do so, subject to
11 ** the following conditions:
12 **
13 ** The above copyright notice and this permission notice shall be included
14 ** in all copies or substantial portions of the Materials.
15 **
16 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
23 */
24 """

◆ MATRIX_RE

process-ogles2-tests.MATRIX_RE = re.compile("Matrix(\\d)")

◆ MAX_TESTS_PER_SET

int process-ogles2-tests.MAX_TESTS_PER_SET = 8

◆ REMOVE_COPYRIGHT_RE

process-ogles2-tests.REMOVE_COPYRIGHT_RE
Initial value:
1 = re.compile("\/\/\s+Copyright.*?\n",
2  re.IGNORECASE | re.DOTALL)

◆ SUBSTITUTIONS

list process-ogles2-tests.SUBSTITUTIONS
Initial value:
1 = [
2  ("uniformmat3fv", "uniformMatrix3fv"),
3  ("uniformmat4fv", "uniformMatrix4fv"),
4 ]

◆ VALID_UNIFORM_TYPES

list process-ogles2-tests.VALID_UNIFORM_TYPES

◆ VERBOSE

bool process-ogles2-tests.VERBOSE = False