Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
=================================================================== |
--- gpu/command_buffer/service/gles2_cmd_decoder_autogen.h (revision 112643) |
+++ gpu/command_buffer/service/gles2_cmd_decoder_autogen.h (working copy) |
@@ -2542,6 +2542,39 @@ |
return error::kNoError; |
} |
+error::Error GLES2DecoderImpl::HandleTexStorage2DEXT( |
+ uint32 immediate_data_size, const gles2::TexStorage2DEXT& c) { |
+ GLenum target = static_cast<GLenum>(c.target); |
+ GLsizei levels = static_cast<GLsizei>(c.levels); |
+ GLint internalFormat = static_cast<GLint>(c.internalFormat); |
+ GLsizei width = static_cast<GLsizei>(c.width); |
+ GLsizei height = static_cast<GLsizei>(c.height); |
+ if (!validators_->texture_target.IsValid(target)) { |
+ SetGLError(GL_INVALID_ENUM, "glTexStorage2DEXT: target GL_INVALID_ENUM"); |
+ return error::kNoError; |
+ } |
+ if (levels < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: levels < 0"); |
+ return error::kNoError; |
+ } |
+ if (!validators_->texture_internal_format_storage.IsValid(internalFormat)) { |
+ SetGLError( |
+ GL_INVALID_VALUE, |
+ "glTexStorage2DEXT: internalFormat GL_INVALID_VALUE"); |
+ return error::kNoError; |
+ } |
+ if (width < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: width < 0"); |
+ return error::kNoError; |
+ } |
+ if (height < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: height < 0"); |
+ return error::kNoError; |
+ } |
+ DoTexStorage2DEXT(target, levels, internalFormat, width, height); |
+ return error::kNoError; |
+} |
+ |
error::Error GLES2DecoderImpl::HandleGetMaxValueInBufferCHROMIUM( |
uint32 immediate_data_size, const gles2::GetMaxValueInBufferCHROMIUM& c) { |
GLuint buffer_id = c.buffer_id; |