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 fa2f5799cae41c7d5f95b989c84053ae85acbb1c..25237e25b8c3f5626b91247b3f9bf409acc52d19 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
@@ -4778,6 +4778,24 @@ error::Error GLES2DecoderImpl::HandleBindTexImage2DCHROMIUM( |
return error::kNoError; |
} |
+error::Error GLES2DecoderImpl::HandleBindTexImage2DWithInternalformatCHROMIUM( |
+ uint32_t immediate_data_size, |
+ const volatile void* cmd_data) { |
+ const volatile gles2::cmds::BindTexImage2DWithInternalformatCHROMIUM& c = |
+ *static_cast<const volatile gles2::cmds:: |
+ BindTexImage2DWithInternalformatCHROMIUM*>(cmd_data); |
+ GLenum target = static_cast<GLenum>(c.target); |
+ GLenum internalformat = static_cast<GLenum>(c.internalformat); |
+ GLint imageId = static_cast<GLint>(c.imageId); |
+ if (!validators_->texture_bind_target.IsValid(target)) { |
+ LOCAL_SET_GL_ERROR_INVALID_ENUM( |
+ "glBindTexImage2DWithInternalformatCHROMIUM", target, "target"); |
+ return error::kNoError; |
+ } |
+ DoBindTexImage2DWithInternalformatCHROMIUM(target, internalformat, imageId); |
+ return error::kNoError; |
+} |
+ |
error::Error GLES2DecoderImpl::HandleReleaseTexImage2DCHROMIUM( |
uint32_t immediate_data_size, |
const volatile void* cmd_data) { |