diff options
author | dongseong.hwang <dongseong.hwang@intel.com> | 2015-03-03 00:42:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-03 08:43:59 +0000 |
commit | fac6a2d44323ad51429ee728e241fe22242f5ebd (patch) | |
tree | 433c4f8bd443d0c6595fbcd865ca6606300e2a0e /gpu/command_buffer/client/gles2_implementation_autogen.h | |
parent | d5ab8aac09df4a85083ba043ec5ff71fd5e94bdb (diff) | |
download | chromium_src-fac6a2d44323ad51429ee728e241fe22242f5ebd.zip chromium_src-fac6a2d44323ad51429ee728e241fe22242f5ebd.tar.gz chromium_src-fac6a2d44323ad51429ee728e241fe22242f5ebd.tar.bz2 |
gpu: introduce glCopySubTextureCHROMIUM
Introduce glCopySubTextureCHROMIUM to support immutable texture as well as to
optimize WebGL texSubImage2D(video | canvas).
This CL changes gl_renderer to use glCopySubTextureCHROMIUM because the
destination texture is immutable.
TEST=GLCopyTextureCHROMIUMTest
BUG=443151
Review URL: https://codereview.chromium.org/864513004
Cr-Commit-Position: refs/heads/master@{#318855}
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation_autogen.h')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation_autogen.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation_autogen.h b/gpu/command_buffer/client/gles2_implementation_autogen.h index c570c45..8e032e4 100644 --- a/gpu/command_buffer/client/gles2_implementation_autogen.h +++ b/gpu/command_buffer/client/gles2_implementation_autogen.h @@ -873,10 +873,15 @@ void TexImageIOSurface2DCHROMIUM(GLenum target, void CopyTextureCHROMIUM(GLenum target, GLenum source_id, GLenum dest_id, - GLint level, GLint internalformat, GLenum dest_type) override; +void CopySubTextureCHROMIUM(GLenum target, + GLenum source_id, + GLenum dest_id, + GLint xoffset, + GLint yoffset) override; + void DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, |