diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 14:15:28 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 14:15:28 +0000 |
commit | 1c75a370ce5ea49e230cae711a0b1d17dc072763 (patch) | |
tree | b3612370e93b34c7ce4d631cf22cafb4d71329ea /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | 9e814828186b00d3ead0edd3884e3185067875d5 (diff) | |
download | chromium_src-1c75a370ce5ea49e230cae711a0b1d17dc072763.zip chromium_src-1c75a370ce5ea49e230cae711a0b1d17dc072763.tar.gz chromium_src-1c75a370ce5ea49e230cae711a0b1d17dc072763.tar.bz2 |
Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer.
These two extensions allow a partial swap: just pushing part of the backbuffer to the front buffer. This will allow the WK compositor to push a partial update to the screen instead of a full frame update (https://bugs.webkit.org/show_bug.cgi?id=70533).
We should be able to do something similar for TOUCHUI ImageTransportSurfaces (hence the hooks into GLSurface and the glPostSubBufferCHROMIUM command).
Review URL: http://codereview.chromium.org/8512005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109625 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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index e1051b4..36dad3f 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -224,6 +224,7 @@ GL_APICALL GLuint GL_APIENTRY glCreateStreamTextureCHROMIUM (GLuint textur GL_APICALL void GL_APIENTRY glDestroyStreamTextureCHROMIUM (GLuint texture); GL_APICALL void GL_APIENTRY glPlaceholder453CHROMIUM (void); GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLidShader shader, GLsizeiNotNegative bufsize, GLsizei* length, char* source); +GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM (GLint x, GLint y, GLint width, GLint height); """ # This is the list of all commmands that will be generated and their Id. @@ -433,6 +434,7 @@ _CMD_ID_TABLE = { 'GetMultipleIntegervCHROMIUM': 454, 'GetProgramInfoCHROMIUM': 455, 'GetTranslatedShaderSourceANGLE': 456, + 'PostSubBufferCHROMIUM': 457, } # This is a list of enum names and their valid values. It is used to map @@ -1517,6 +1519,13 @@ _FUNCTION_INFO = { 'chromium': True, }, 'PixelStorei': {'type': 'Manual'}, + 'PostSubBufferCHROMIUM': { + 'type': 'Custom', + 'impl_func': False, + 'unit_test': False, + 'extension': True, + 'chromium': True, + }, 'RenderbufferStorage': { 'decoder_func': 'DoRenderbufferStorage', 'gl_test_func': 'glRenderbufferStorageEXT', |