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 641efde39ff27a48e62c58c04100c6552459dcb6..98447bf54cfc2611df63468ee6250723886c0f8d 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -3108,18 +3108,32 @@ void GLES2Implementation::TexImageIOSurface2DCHROMIUM(GLenum target, |
void GLES2Implementation::CopyTextureCHROMIUM(GLenum target, |
GLenum source_id, |
GLenum dest_id, |
- GLint level, |
GLint internalformat, |
GLenum dest_type) { |
GPU_CLIENT_SINGLE_THREAD_CHECK(); |
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopyTextureCHROMIUM(" |
<< GLES2Util::GetStringEnum(target) << ", " |
<< GLES2Util::GetStringEnum(source_id) << ", " |
- << GLES2Util::GetStringEnum(dest_id) << ", " << level |
- << ", " << internalformat << ", " |
+ << GLES2Util::GetStringEnum(dest_id) << ", " |
+ << internalformat << ", " |
<< GLES2Util::GetStringPixelType(dest_type) << ")"); |
- helper_->CopyTextureCHROMIUM(target, source_id, dest_id, level, |
- internalformat, dest_type); |
+ helper_->CopyTextureCHROMIUM(target, source_id, dest_id, internalformat, |
+ dest_type); |
+ CheckGLError(); |
+} |
+ |
+void GLES2Implementation::CopySubTextureCHROMIUM(GLenum target, |
+ GLenum source_id, |
+ GLenum dest_id, |
+ GLint xoffset, |
+ GLint yoffset) { |
+ 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); |
CheckGLError(); |
} |