OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 // It is included by gles2_cmd_decoder.cc | 7 // It is included by gles2_cmd_decoder.cc |
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 9 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
10 | 10 |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2728 return error::kNoError; | 2728 return error::kNoError; |
2729 } | 2729 } |
2730 if (!ValidateGLenumGetMaxIndexType(type)) { | 2730 if (!ValidateGLenumGetMaxIndexType(type)) { |
2731 SetGLError(GL_INVALID_ENUM, "glGetMaxValueInBuffer: type GL_INVALID_ENUM"); | 2731 SetGLError(GL_INVALID_ENUM, "glGetMaxValueInBuffer: type GL_INVALID_ENUM"); |
2732 return error::kNoError; | 2732 return error::kNoError; |
2733 } | 2733 } |
2734 *result_dst = DoGetMaxValueInBuffer(buffer_id, count, type, offset); | 2734 *result_dst = DoGetMaxValueInBuffer(buffer_id, count, type, offset); |
2735 return error::kNoError; | 2735 return error::kNoError; |
2736 } | 2736 } |
2737 | 2737 |
2738 error::Error GLES2DecoderImpl::HandleCommandBufferEnable( | |
2739 uint32 immediate_data_size, const gles2::CommandBufferEnable& c) { | |
2740 GLenum cap = static_cast<GLenum>(c.cap); | |
2741 GLboolean enable = static_cast<GLboolean>(c.enable); | |
2742 if (!ValidateGLenumCommandBufferState(cap)) { | |
2743 SetGLError(GL_INVALID_ENUM, "glCommandBufferEnable: cap GL_INVALID_ENUM"); | |
2744 return error::kNoError; | |
2745 } | |
2746 DoCommandBufferEnable(cap, enable); | |
2747 return error::kNoError; | |
2748 } | |
2749 | |
2750 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 2738 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
2751 | 2739 |
OLD | NEW |