webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Functions
utilities.cpp File Reference
#include "common/utilities.h"
#include "common/mathutil.h"
#include "common/platform.h"
#include <set>

Namespaces

 gl
 
 egl
 
 egl_gl
 

Functions

int gl::VariableComponentCount (GLenum type)
 
GLenum gl::VariableComponentType (GLenum type)
 
size_t gl::VariableComponentSize (GLenum type)
 
size_t gl::VariableInternalSize (GLenum type)
 
size_t gl::VariableExternalSize (GLenum type)
 
GLenum gl::VariableBoolVectorType (GLenum type)
 
int gl::VariableRowCount (GLenum type)
 
int gl::VariableColumnCount (GLenum type)
 
bool gl::IsSamplerType (GLenum type)
 
GLenum gl::SamplerTypeToTextureType (GLenum samplerType)
 
bool gl::IsMatrixType (GLenum type)
 
GLenum gl::TransposeMatrixType (GLenum type)
 
int gl::MatrixRegisterCount (GLenum type, bool isRowMajorMatrix)
 
int gl::MatrixComponentCount (GLenum type, bool isRowMajorMatrix)
 
int gl::VariableRegisterCount (GLenum type)
 
int gl::AllocateFirstFreeBits (unsigned int *bits, unsigned int allocationSize, unsigned int bitsSize)
 
bool gl::IsCubeMapTextureTarget (GLenum target)
 
size_t gl::CubeMapTextureTargetToLayerIndex (GLenum target)
 
GLenum gl::LayerIndexToCubeMapTextureTarget (size_t index)
 
IndexRange gl::ComputeIndexRange (GLenum indexType, const GLvoid *indices, size_t count, bool primitiveRestartEnabled)
 
GLuint gl::GetPrimitiveRestartIndex (GLenum indexType)
 
bool gl::IsTriangleMode (GLenum drawMode)
 
int gl::VariableSortOrder (GLenum type)
 
std::string gl::ParseUniformName (const std::string &name, size_t *outSubscript)
 
template<>
GLuint gl::ConvertToGLuint (GLfloat param)
 
template<>
GLint gl::ConvertToGLint (GLfloat param)
 
template<>
GLint gl::ConvertFromGLfloat (GLfloat param)
 
template<>
GLuint gl::ConvertFromGLfloat (GLfloat param)
 
unsigned int gl::ParseAndStripArrayIndex (std::string *name)
 
bool egl::IsCubeMapTextureTarget (EGLenum target)
 
size_t egl::CubeMapTextureTargetToLayerIndex (EGLenum target)
 
EGLenum egl::LayerIndexToCubeMapTextureTarget (size_t index)
 
bool egl::IsTextureTarget (EGLenum target)
 
bool egl::IsRenderbufferTarget (EGLenum target)
 
GLenum egl_gl::EGLCubeMapTargetToGLCubeMapTarget (EGLenum eglTarget)
 
GLenum egl_gl::EGLImageTargetToGLTextureTarget (EGLenum eglTarget)
 
GLuint egl_gl::EGLClientBufferToGLObjectHandle (EGLClientBuffer buffer)
 
std::string getTempPath ()
 
void writeFile (const char *path, const void *content, size_t size)
 

Function Documentation

◆ getTempPath()

std::string getTempPath ( )

◆ writeFile()

void writeFile ( const char *  path,
const void content,
size_t  size 
)