Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
index f81b56afab591ae9cb8a32e8e45f6c0d36bab92f..950b0bc0f7f7ef711e675e5165ed18cdf1967e0d 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
@@ -3633,6 +3633,32 @@ error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( |
return error::kNoError; |
} |
+error::Error GLES2DecoderImpl::HandleCopyCompressedTextureCHROMIUM( |
+ uint32_t immediate_data_size, |
+ const void* cmd_data) { |
+ const gles2::cmds::CopyCompressedTextureCHROMIUM& c = |
+ *static_cast<const gles2::cmds::CopyCompressedTextureCHROMIUM*>(cmd_data); |
+ (void)c; |
+ GLenum target = static_cast<GLenum>(c.target); |
+ GLenum source_id = static_cast<GLenum>(c.source_id); |
+ GLenum dest_id = static_cast<GLenum>(c.dest_id); |
+ GLenum internalformat = static_cast<GLenum>(c.internalformat); |
+ GLenum dest_type = static_cast<GLenum>(c.dest_type); |
+ if (!validators_->compressed_texture_format.IsValid(internalformat)) { |
+ LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyCompressedTextureCHROMIUM", |
+ internalformat, "internalformat"); |
+ return error::kNoError; |
+ } |
+ if (!validators_->pixel_type.IsValid(dest_type)) { |
+ LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyCompressedTextureCHROMIUM", |
+ dest_type, "dest_type"); |
+ return error::kNoError; |
+ } |
+ DoCopyCompressedTextureCHROMIUM(target, source_id, dest_id, internalformat, |
+ dest_type); |
+ return error::kNoError; |
+} |
+ |
error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( |
uint32_t immediate_data_size, |
const void* cmd_data) { |