OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // It is included by gles2_cmd_decoder.cc | 9 // It is included by gles2_cmd_decoder.cc |
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 error::Error GLES2DecoderImpl::HandleGetTexParameterfv( | 1183 error::Error GLES2DecoderImpl::HandleGetTexParameterfv( |
1184 uint32 immediate_data_size, const gles2::GetTexParameterfv& c) { | 1184 uint32 immediate_data_size, const gles2::GetTexParameterfv& c) { |
1185 GLenum target = static_cast<GLenum>(c.target); | 1185 GLenum target = static_cast<GLenum>(c.target); |
1186 GLenum pname = static_cast<GLenum>(c.pname); | 1186 GLenum pname = static_cast<GLenum>(c.pname); |
1187 typedef GetTexParameterfv::Result Result; | 1187 typedef GetTexParameterfv::Result Result; |
1188 GLsizei num_values = 0; | 1188 GLsizei num_values = 0; |
1189 GetNumValuesReturnedForGLGet(pname, &num_values); | 1189 GetNumValuesReturnedForGLGet(pname, &num_values); |
1190 Result* result = GetSharedMemoryAs<Result*>( | 1190 Result* result = GetSharedMemoryAs<Result*>( |
1191 c.params_shm_id, c.params_shm_offset, Result::ComputeSize(num_values)); | 1191 c.params_shm_id, c.params_shm_offset, Result::ComputeSize(num_values)); |
1192 GLfloat* params = result ? result->GetData() : NULL; | 1192 GLfloat* params = result ? result->GetData() : NULL; |
1193 if (!validators_->texture_target.IsValid(target)) { | 1193 if (!validators_->get_tex_param_target.IsValid(target)) { |
1194 SetGLError(GL_INVALID_ENUM, "glGetTexParameterfv: target GL_INVALID_ENUM"); | 1194 SetGLError(GL_INVALID_ENUM, "glGetTexParameterfv: target GL_INVALID_ENUM"); |
1195 return error::kNoError; | 1195 return error::kNoError; |
1196 } | 1196 } |
1197 if (!validators_->texture_parameter.IsValid(pname)) { | 1197 if (!validators_->texture_parameter.IsValid(pname)) { |
1198 SetGLError(GL_INVALID_ENUM, "glGetTexParameterfv: pname GL_INVALID_ENUM"); | 1198 SetGLError(GL_INVALID_ENUM, "glGetTexParameterfv: pname GL_INVALID_ENUM"); |
1199 return error::kNoError; | 1199 return error::kNoError; |
1200 } | 1200 } |
1201 if (params == NULL) { | 1201 if (params == NULL) { |
1202 return error::kOutOfBounds; | 1202 return error::kOutOfBounds; |
1203 } | 1203 } |
(...skipping 15 matching lines...) Expand all Loading... |
1219 error::Error GLES2DecoderImpl::HandleGetTexParameteriv( | 1219 error::Error GLES2DecoderImpl::HandleGetTexParameteriv( |
1220 uint32 immediate_data_size, const gles2::GetTexParameteriv& c) { | 1220 uint32 immediate_data_size, const gles2::GetTexParameteriv& c) { |
1221 GLenum target = static_cast<GLenum>(c.target); | 1221 GLenum target = static_cast<GLenum>(c.target); |
1222 GLenum pname = static_cast<GLenum>(c.pname); | 1222 GLenum pname = static_cast<GLenum>(c.pname); |
1223 typedef GetTexParameteriv::Result Result; | 1223 typedef GetTexParameteriv::Result Result; |
1224 GLsizei num_values = 0; | 1224 GLsizei num_values = 0; |
1225 GetNumValuesReturnedForGLGet(pname, &num_values); | 1225 GetNumValuesReturnedForGLGet(pname, &num_values); |
1226 Result* result = GetSharedMemoryAs<Result*>( | 1226 Result* result = GetSharedMemoryAs<Result*>( |
1227 c.params_shm_id, c.params_shm_offset, Result::ComputeSize(num_values)); | 1227 c.params_shm_id, c.params_shm_offset, Result::ComputeSize(num_values)); |
1228 GLint* params = result ? result->GetData() : NULL; | 1228 GLint* params = result ? result->GetData() : NULL; |
1229 if (!validators_->texture_target.IsValid(target)) { | 1229 if (!validators_->get_tex_param_target.IsValid(target)) { |
1230 SetGLError(GL_INVALID_ENUM, "glGetTexParameteriv: target GL_INVALID_ENUM"); | 1230 SetGLError(GL_INVALID_ENUM, "glGetTexParameteriv: target GL_INVALID_ENUM"); |
1231 return error::kNoError; | 1231 return error::kNoError; |
1232 } | 1232 } |
1233 if (!validators_->texture_parameter.IsValid(pname)) { | 1233 if (!validators_->texture_parameter.IsValid(pname)) { |
1234 SetGLError(GL_INVALID_ENUM, "glGetTexParameteriv: pname GL_INVALID_ENUM"); | 1234 SetGLError(GL_INVALID_ENUM, "glGetTexParameteriv: pname GL_INVALID_ENUM"); |
1235 return error::kNoError; | 1235 return error::kNoError; |
1236 } | 1236 } |
1237 if (params == NULL) { | 1237 if (params == NULL) { |
1238 return error::kOutOfBounds; | 1238 return error::kOutOfBounds; |
1239 } | 1239 } |
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2587 | 2587 |
2588 error::Error GLES2DecoderImpl::HandleSetSurfaceCHROMIUM( | 2588 error::Error GLES2DecoderImpl::HandleSetSurfaceCHROMIUM( |
2589 uint32 immediate_data_size, const gles2::SetSurfaceCHROMIUM& c) { | 2589 uint32 immediate_data_size, const gles2::SetSurfaceCHROMIUM& c) { |
2590 GLint surface_id = static_cast<GLint>(c.surface_id); | 2590 GLint surface_id = static_cast<GLint>(c.surface_id); |
2591 DoSetSurfaceCHROMIUM(surface_id); | 2591 DoSetSurfaceCHROMIUM(surface_id); |
2592 return error::kNoError; | 2592 return error::kNoError; |
2593 } | 2593 } |
2594 | 2594 |
2595 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 2595 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
2596 | 2596 |
OLD | NEW |