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 17ce8e3526d2d57a00d5c912da403a38573b23c0..b9a007a9beec60c6b961eeef993f9f721b94e6b1 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
@@ -3398,6 +3398,24 @@ error::Error GLES2DecoderImpl::HandleDiscardFramebufferEXTImmediate( |
return error::kNoError; |
} |
+error::Error GLES2DecoderImpl::HandleLoseContextCHROMIUM( |
+ uint32_t immediate_data_size, |
+ const gles2::cmds::LoseContextCHROMIUM& c) { |
+ GLenum current = static_cast<GLenum>(c.current); |
+ GLenum other = static_cast<GLenum>(c.other); |
+ if (!validators_->reset_status.IsValid(current)) { |
+ LOCAL_SET_GL_ERROR_INVALID_ENUM( |
+ "glLoseContextCHROMIUM", current, "current"); |
+ return error::kNoError; |
+ } |
+ if (!validators_->reset_status.IsValid(other)) { |
+ LOCAL_SET_GL_ERROR_INVALID_ENUM("glLoseContextCHROMIUM", other, "other"); |
+ return error::kNoError; |
+ } |
+ DoLoseContextCHROMIUM(current, other); |
+ return error::kNoError; |
+} |
+ |
error::Error GLES2DecoderImpl::HandleDrawBuffersEXT( |
uint32_t immediate_data_size, |
const gles2::cmds::DrawBuffersEXT& c) { |