diff options
author | christiank <christiank@opera.com> | 2015-06-17 04:40:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-17 11:40:53 +0000 |
commit | 8312009fd0fe42534b7c9eccedf4c34297e37d21 (patch) | |
tree | 0bea7db213fa634dc45e0bca9649d481026b88e1 /mojo/gpu | |
parent | 9c6d21fa07a07e59c883bf2fa5ed3ed32d5665d0 (diff) | |
download | chromium_src-8312009fd0fe42534b7c9eccedf4c34297e37d21.zip chromium_src-8312009fd0fe42534b7c9eccedf4c34297e37d21.tar.gz chromium_src-8312009fd0fe42534b7c9eccedf4c34297e37d21.tar.bz2 |
Add glCopyCompressedTextureCHROMIUM
This CL adds a GPU command for copying compressed textures. It's
based on glCopyTextureCHROMIUM, but modified for use on
compressed textures. It only supports GLImage-based copying.
BUG=434699
Review URL: https://codereview.chromium.org/1119723003
Cr-Commit-Position: refs/heads/master@{#334810}
Diffstat (limited to 'mojo/gpu')
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.cc | 5 | ||||
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc index f812047..054a593 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.cc +++ b/mojo/gpu/mojo_gles2_impl_autogen.cc @@ -1467,6 +1467,11 @@ void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, width, height); } +void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, + GLenum source_id, + GLenum dest_id) { + NOTREACHED() << "Unimplemented CompressedCopyTextureCHROMIUM."; +} 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 a6746d0..723dda6 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.h +++ b/mojo/gpu/mojo_gles2_impl_autogen.h @@ -696,6 +696,9 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface { GLint y, GLsizei width, GLsizei height) override; + void CompressedCopyTextureCHROMIUM(GLenum target, + GLenum source_id, + GLenum dest_id) override; void DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, |