Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
index 495190cdd28b4d89fe489f535ee6de2f386c4280..4f4ee325f9637b8ca0b516124994f3cfdbb4ea5a 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -3208,14 +3208,28 @@ void GLES2Implementation::CopySubTextureCHROMIUM(GLenum target, |
GLenum source_id, |
GLenum dest_id, |
GLint xoffset, |
- GLint yoffset) { |
+ GLint yoffset, |
+ GLint x, |
+ GLint y, |
+ GLsizei width, |
+ GLsizei height) { |
GPU_CLIENT_SINGLE_THREAD_CHECK(); |
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopySubTextureCHROMIUM(" |
<< GLES2Util::GetStringEnum(target) << ", " |
<< GLES2Util::GetStringEnum(source_id) << ", " |
<< GLES2Util::GetStringEnum(dest_id) << ", " << xoffset |
- << ", " << yoffset << ")"); |
- helper_->CopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset); |
+ << ", " << yoffset << ", " << x << ", " << y << ", " |
+ << width << ", " << height << ")"); |
+ if (width < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "width < 0"); |
+ return; |
+ } |
+ if (height < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "height < 0"); |
+ return; |
+ } |
+ helper_->CopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, |
+ x, y, width, height); |
CheckGLError(); |
} |