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}


CrOS-Libchrome-Original-Commit: 8312009fd0fe42534b7c9eccedf4c34297e37d21
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 @@
   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 @@
                               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,