diff options
author | christiank <christiank@opera.com> | 2015-08-19 07:30:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-19 14:31:21 +0000 |
commit | 00b21807f5c050f8766685c20e1cfc2ed9db636e (patch) | |
tree | 9d0ebe81006d2a39cbc9a4826f99e469979822ad /mojo/gpu | |
parent | c7da89f96f7010199fb0ae221da1cac82f552771 (diff) | |
download | chromium_src-00b21807f5c050f8766685c20e1cfc2ed9db636e.zip chromium_src-00b21807f5c050f8766685c20e1cfc2ed9db636e.tar.gz chromium_src-00b21807f5c050f8766685c20e1cfc2ed9db636e.tar.bz2 |
Add glCompressedCopySubTextureCHROMIUM
This CL adds a GPU command for copying sub regions of compressed textures.
The implementation is based on glCopySubTextureCHROMIUM.
BUG=434699
Review URL: https://codereview.chromium.org/1272153004
Cr-Commit-Position: refs/heads/master@{#344220}
Diffstat (limited to 'mojo/gpu')
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.cc | 11 | ||||
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.h | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc index 9549004..323a936 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.cc +++ b/mojo/gpu/mojo_gles2_impl_autogen.cc @@ -1507,6 +1507,17 @@ void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, GLenum dest_id) { NOTREACHED() << "Unimplemented CompressedCopyTextureCHROMIUM."; } +void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, + GLenum source_id, + GLenum dest_id, + GLint xoffset, + GLint yoffset, + GLint x, + GLint y, + GLsizei width, + GLsizei height) { + NOTREACHED() << "Unimplemented CompressedCopySubTextureCHROMIUM."; +} void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h index b5e6255..8b6b866 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.h +++ b/mojo/gpu/mojo_gles2_impl_autogen.h @@ -715,6 +715,15 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface { void CompressedCopyTextureCHROMIUM(GLenum target, GLenum source_id, GLenum dest_id) override; + void CompressedCopySubTextureCHROMIUM(GLenum target, + GLenum source_id, + GLenum dest_id, + GLint xoffset, + GLint yoffset, + GLint x, + GLint y, + GLsizei width, + GLsizei height) override; void DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, |