OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 4969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4980 } | 4980 } |
4981 if (!validators_->get_max_index_type.IsValid(type)) { | 4981 if (!validators_->get_max_index_type.IsValid(type)) { |
4982 LOCAL_SET_GL_ERROR_INVALID_ENUM("glGetMaxValueInBufferCHROMIUM", type, | 4982 LOCAL_SET_GL_ERROR_INVALID_ENUM("glGetMaxValueInBufferCHROMIUM", type, |
4983 "type"); | 4983 "type"); |
4984 return error::kNoError; | 4984 return error::kNoError; |
4985 } | 4985 } |
4986 *result_dst = DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset); | 4986 *result_dst = DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset); |
4987 return error::kNoError; | 4987 return error::kNoError; |
4988 } | 4988 } |
4989 | 4989 |
| 4990 error::Error GLES2DecoderImpl::HandleFlushMappedBufferRange( |
| 4991 uint32_t immediate_data_size, |
| 4992 const void* cmd_data) { |
| 4993 if (!unsafe_es3_apis_enabled()) |
| 4994 return error::kUnknownCommand; |
| 4995 const gles2::cmds::FlushMappedBufferRange& c = |
| 4996 *static_cast<const gles2::cmds::FlushMappedBufferRange*>(cmd_data); |
| 4997 (void)c; |
| 4998 GLenum target = static_cast<GLenum>(c.target); |
| 4999 GLintptr offset = static_cast<GLintptr>(c.offset); |
| 5000 GLsizeiptr size = static_cast<GLsizeiptr>(c.size); |
| 5001 if (!validators_->buffer_target.IsValid(target)) { |
| 5002 LOCAL_SET_GL_ERROR_INVALID_ENUM("glFlushMappedBufferRange", target, |
| 5003 "target"); |
| 5004 return error::kNoError; |
| 5005 } |
| 5006 if (size < 0) { |
| 5007 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glFlushMappedBufferRange", |
| 5008 "size < 0"); |
| 5009 return error::kNoError; |
| 5010 } |
| 5011 DoFlushMappedBufferRange(target, offset, size); |
| 5012 return error::kNoError; |
| 5013 } |
| 5014 |
4990 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( | 5015 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( |
4991 uint32_t immediate_data_size, | 5016 uint32_t immediate_data_size, |
4992 const void* cmd_data) { | 5017 const void* cmd_data) { |
4993 const gles2::cmds::CopyTextureCHROMIUM& c = | 5018 const gles2::cmds::CopyTextureCHROMIUM& c = |
4994 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); | 5019 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); |
4995 (void)c; | 5020 (void)c; |
4996 GLenum source_id = static_cast<GLenum>(c.source_id); | 5021 GLenum source_id = static_cast<GLenum>(c.source_id); |
4997 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 5022 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
4998 GLint internalformat = static_cast<GLint>(c.internalformat); | 5023 GLint internalformat = static_cast<GLint>(c.internalformat); |
4999 GLenum dest_type = static_cast<GLenum>(c.dest_type); | 5024 GLenum dest_type = static_cast<GLenum>(c.dest_type); |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5624 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5649 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5625 return true; | 5650 return true; |
5626 } | 5651 } |
5627 return false; | 5652 return false; |
5628 default: | 5653 default: |
5629 NOTREACHED(); | 5654 NOTREACHED(); |
5630 return false; | 5655 return false; |
5631 } | 5656 } |
5632 } | 5657 } |
5633 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5658 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |