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 4655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4666 } | 4666 } |
4667 if (!validators_->get_max_index_type.IsValid(type)) { | 4667 if (!validators_->get_max_index_type.IsValid(type)) { |
4668 LOCAL_SET_GL_ERROR_INVALID_ENUM("glGetMaxValueInBufferCHROMIUM", type, | 4668 LOCAL_SET_GL_ERROR_INVALID_ENUM("glGetMaxValueInBufferCHROMIUM", type, |
4669 "type"); | 4669 "type"); |
4670 return error::kNoError; | 4670 return error::kNoError; |
4671 } | 4671 } |
4672 *result_dst = DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset); | 4672 *result_dst = DoGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset); |
4673 return error::kNoError; | 4673 return error::kNoError; |
4674 } | 4674 } |
4675 | 4675 |
4676 error::Error GLES2DecoderImpl::HandleDescheduleUntilFinishedCHROMIUM( | |
4677 uint32_t immediate_data_size, | |
4678 const void* cmd_data) { | |
4679 const gles2::cmds::DescheduleUntilFinishedCHROMIUM& c = | |
4680 *static_cast<const gles2::cmds::DescheduleUntilFinishedCHROMIUM*>( | |
4681 cmd_data); | |
4682 (void)c; | |
4683 DoDescheduleUntilFinishedCHROMIUM(); | |
4684 return error::kNoError; | |
piman
2016/05/31 19:25:21
You need to return kDeferCommandUntilLater here, o
| |
4685 } | |
4686 | |
4676 error::Error GLES2DecoderImpl::HandleTexImageIOSurface2DCHROMIUM( | 4687 error::Error GLES2DecoderImpl::HandleTexImageIOSurface2DCHROMIUM( |
4677 uint32_t immediate_data_size, | 4688 uint32_t immediate_data_size, |
4678 const void* cmd_data) { | 4689 const void* cmd_data) { |
4679 const gles2::cmds::TexImageIOSurface2DCHROMIUM& c = | 4690 const gles2::cmds::TexImageIOSurface2DCHROMIUM& c = |
4680 *static_cast<const gles2::cmds::TexImageIOSurface2DCHROMIUM*>(cmd_data); | 4691 *static_cast<const gles2::cmds::TexImageIOSurface2DCHROMIUM*>(cmd_data); |
4681 (void)c; | 4692 (void)c; |
4682 GLenum target = static_cast<GLenum>(c.target); | 4693 GLenum target = static_cast<GLenum>(c.target); |
4683 GLsizei width = static_cast<GLsizei>(c.width); | 4694 GLsizei width = static_cast<GLsizei>(c.width); |
4684 GLsizei height = static_cast<GLsizei>(c.height); | 4695 GLsizei height = static_cast<GLsizei>(c.height); |
4685 GLuint ioSurfaceId = static_cast<GLuint>(c.ioSurfaceId); | 4696 GLuint ioSurfaceId = static_cast<GLuint>(c.ioSurfaceId); |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5310 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5321 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5311 return true; | 5322 return true; |
5312 } | 5323 } |
5313 return false; | 5324 return false; |
5314 default: | 5325 default: |
5315 NOTREACHED(); | 5326 NOTREACHED(); |
5316 return false; | 5327 return false; |
5317 } | 5328 } |
5318 } | 5329 } |
5319 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5330 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |