summaryrefslogtreecommitdiffstats
path: root/mojo/gpu
diff options
context:
space:
mode:
authorchristiank <christiank@opera.com>2015-08-19 07:30:37 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-19 14:31:21 +0000
commit00b21807f5c050f8766685c20e1cfc2ed9db636e (patch)
tree9d0ebe81006d2a39cbc9a4826f99e469979822ad /mojo/gpu
parentc7da89f96f7010199fb0ae221da1cac82f552771 (diff)
downloadchromium_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.cc11
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.h9
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,