summaryrefslogtreecommitdiffstats
path: root/mojo/gpu
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2015-05-25 23:05:34 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-26 06:06:05 +0000
commitb6643fb0eedfc95a7990cba21769ceded5bfccaf (patch)
tree90ef6f92061fc7529438a1eb50f367cc4c918327 /mojo/gpu
parentc4fee66074f81982355073bf9703e50ce5f88c48 (diff)
downloadchromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.zip
chromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.tar.gz
chromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.tar.bz2
gpu: Extend CopyTextureCHROMIUM with support for copying part of source texture.
This makes it possible to specify the area of the source texture that is copied to the destination texture. BUG=490889 TEST=gl_tests CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1143373004 Cr-Commit-Position: refs/heads/master@{#331326}
Diffstat (limited to 'mojo/gpu')
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.cc6
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
index 2a6169b..2ffcbf1 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1452,7 +1452,11 @@ void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target,
GLenum source_id,
GLenum dest_id,
GLint xoffset,
- GLint yoffset) {
+ GLint yoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) {
NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM.";
}
void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode,
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h
index d6be8929..8b242d7 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.h
+++ b/mojo/gpu/mojo_gles2_impl_autogen.h
@@ -691,7 +691,11 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
GLenum source_id,
GLenum dest_id,
GLint xoffset,
- GLint yoffset) override;
+ GLint yoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) override;
void DrawArraysInstancedANGLE(GLenum mode,
GLint first,
GLsizei count,