diff options
author | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 17:26:17 +0000 |
---|---|---|
committer | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 17:26:17 +0000 |
commit | 97dc7cbe1b802facd4ccf92c6f7da78bd5a8ce51 (patch) | |
tree | 93e396f7cef6348bbebcd3c83cbdf7eb023d0d3f /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | fa8e6464f65a0f0304ea199d04ca531dbab79f99 (diff) | |
download | chromium_src-97dc7cbe1b802facd4ccf92c6f7da78bd5a8ce51.zip chromium_src-97dc7cbe1b802facd4ccf92c6f7da78bd5a8ce51.tar.gz chromium_src-97dc7cbe1b802facd4ccf92c6f7da78bd5a8ce51.tar.bz2 |
Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage
extensions to the command buffer and the WebGraphicsContext3D APIs.
BUG=106142
TEST=unittests
Review URL: http://codereview.chromium.org/8772033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 16fc4d2..c3ce764 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -201,6 +201,7 @@ GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLintVer GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenumBlitFilter filter); GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenumRenderBufferTarget target, GLsizei samples, GLenumRenderBufferFormat internalformat, GLsizei width, GLsizei height); +GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenumTextureTarget target, GLsizei levels, GLintTextureInternalFormatStorage internalFormat, GLsizei width, GLsizei height); // Non-GL commands. GL_APICALL void GL_APIENTRY glSwapBuffers (void); GL_APICALL GLuint GL_APIENTRY glGetMaxValueInBufferCHROMIUM (GLidBuffer buffer_id, GLsizei count, GLenumGetMaxIndexType type, GLuint offset); @@ -436,6 +437,7 @@ _CMD_ID_TABLE = { 'GetTranslatedShaderSourceANGLE': 456, 'PostSubBufferCHROMIUM': 457, 'TexImageIOSurface2DCHROMIUM': 458, + 'TexStorage2DEXT': 459, } # This is a list of enum names and their valid values. It is used to map @@ -898,6 +900,13 @@ _ENUM_LISTS = { 'GL_LINEAR', ], }, + 'TextureUsage': { + 'type': 'GLenum', + 'valid': [ + 'GL_NONE', + 'GL_FRAMEBUFFER_ATTACHMENT_ANGLE', + ], + }, 'VertexAttribute': { 'type': 'GLenum', 'valid': [ @@ -1036,6 +1045,19 @@ _ENUM_LISTS = { 'GL_BGR', ], }, + 'TextureInternalFormatStorage': { + 'type': 'GLenum', + 'valid': [ + 'GL_RGB565', + 'GL_RGBA4', + 'GL_RGB5_A1', + 'GL_ALPHA8_EXT', + 'GL_LUMINANCE8_EXT', + 'GL_LUMINANCE8_ALPHA8_EXT', + 'GL_RGB8_OES', + 'GL_RGBA8_OES', + ], + }, 'VertexAttribType': { 'type': 'GLenum', 'valid': [ @@ -1801,6 +1823,12 @@ _FUNCTION_INFO = { 'extension': True, 'chromium': True, }, + 'TexStorage2DEXT': { + 'unit_test': False, + 'extension': True, + 'decoder_func': 'DoTexStorage2DEXT', + }, + } |