OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 return error::kNoError; | 1009 return error::kNoError; |
1010 } | 1010 } |
1011 if (params == NULL) { | 1011 if (params == NULL) { |
1012 return error::kOutOfBounds; | 1012 return error::kOutOfBounds; |
1013 } | 1013 } |
1014 // Check that the client initialized the result. | 1014 // Check that the client initialized the result. |
1015 if (result->size != 0) { | 1015 if (result->size != 0) { |
1016 return error::kInvalidArguments; | 1016 return error::kInvalidArguments; |
1017 } | 1017 } |
1018 CopyRealGLErrorsToWrapper(); | 1018 CopyRealGLErrorsToWrapper(); |
1019 glGetBufferParameteriv(target, pname, params); | 1019 DoGetBufferParameteriv(target, pname, params); |
1020 GLenum error = glGetError(); | 1020 GLenum error = glGetError(); |
1021 if (error == GL_NO_ERROR) { | 1021 if (error == GL_NO_ERROR) { |
1022 result->SetNumResults(num_values); | 1022 result->SetNumResults(num_values); |
1023 } else { | 1023 } else { |
1024 SetGLError(error, "", ""); | 1024 SetGLError(error, "", ""); |
1025 } | 1025 } |
1026 return error::kNoError; | 1026 return error::kNoError; |
1027 } | 1027 } |
1028 | 1028 |
1029 error::Error GLES2DecoderImpl::HandleGetError( | 1029 error::Error GLES2DecoderImpl::HandleGetError( |
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3227 clear_state_dirty_ = true; | 3227 clear_state_dirty_ = true; |
3228 } | 3228 } |
3229 return false; | 3229 return false; |
3230 default: | 3230 default: |
3231 NOTREACHED(); | 3231 NOTREACHED(); |
3232 return false; | 3232 return false; |
3233 } | 3233 } |
3234 } | 3234 } |
3235 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 3235 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
3236 | 3236 |
OLD | NEW |