| 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 4553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4564 return error::kNoError; | 4564 return error::kNoError; |
| 4565 } | 4565 } |
| 4566 | 4566 |
| 4567 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( | 4567 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( |
| 4568 uint32_t immediate_data_size, | 4568 uint32_t immediate_data_size, |
| 4569 const volatile void* cmd_data) { | 4569 const volatile void* cmd_data) { |
| 4570 const volatile gles2::cmds::CopyTextureCHROMIUM& c = | 4570 const volatile gles2::cmds::CopyTextureCHROMIUM& c = |
| 4571 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); | 4571 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); |
| 4572 GLenum source_id = static_cast<GLenum>(c.source_id); | 4572 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 4573 GLint source_level = static_cast<GLint>(c.source_level); | 4573 GLint source_level = static_cast<GLint>(c.source_level); |
| 4574 GLenum dest_target = static_cast<GLenum>(c.dest_target); |
| 4574 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 4575 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 4575 GLint dest_level = static_cast<GLint>(c.dest_level); | 4576 GLint dest_level = static_cast<GLint>(c.dest_level); |
| 4576 GLint internalformat = static_cast<GLint>(c.internalformat); | 4577 GLint internalformat = static_cast<GLint>(c.internalformat); |
| 4577 GLenum dest_type = static_cast<GLenum>(c.dest_type); | 4578 GLenum dest_type = static_cast<GLenum>(c.dest_type); |
| 4578 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 4579 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 4579 GLboolean unpack_premultiply_alpha = | 4580 GLboolean unpack_premultiply_alpha = |
| 4580 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 4581 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 4581 GLboolean unpack_unmultiply_alpha = | 4582 GLboolean unpack_unmultiply_alpha = |
| 4582 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 4583 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 4583 if (!validators_->texture_internal_format.IsValid(internalformat)) { | 4584 if (!validators_->texture_internal_format.IsValid(internalformat)) { |
| 4584 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", | 4585 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", |
| 4585 "internalformat GL_INVALID_VALUE"); | 4586 "internalformat GL_INVALID_VALUE"); |
| 4586 return error::kNoError; | 4587 return error::kNoError; |
| 4587 } | 4588 } |
| 4588 if (!validators_->pixel_type.IsValid(dest_type)) { | 4589 if (!validators_->pixel_type.IsValid(dest_type)) { |
| 4589 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, | 4590 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, |
| 4590 "dest_type"); | 4591 "dest_type"); |
| 4591 return error::kNoError; | 4592 return error::kNoError; |
| 4592 } | 4593 } |
| 4593 DoCopyTextureCHROMIUM(source_id, source_level, dest_id, dest_level, | 4594 DoCopyTextureCHROMIUM(source_id, source_level, dest_target, dest_id, |
| 4594 internalformat, dest_type, unpack_flip_y, | 4595 dest_level, internalformat, dest_type, unpack_flip_y, |
| 4595 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 4596 unpack_premultiply_alpha, unpack_unmultiply_alpha); |
| 4596 return error::kNoError; | 4597 return error::kNoError; |
| 4597 } | 4598 } |
| 4598 | 4599 |
| 4599 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( | 4600 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( |
| 4600 uint32_t immediate_data_size, | 4601 uint32_t immediate_data_size, |
| 4601 const volatile void* cmd_data) { | 4602 const volatile void* cmd_data) { |
| 4602 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = | 4603 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = |
| 4603 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( | 4604 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( |
| 4604 cmd_data); | 4605 cmd_data); |
| 4605 GLenum source_id = static_cast<GLenum>(c.source_id); | 4606 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 4606 GLint source_level = static_cast<GLint>(c.source_level); | 4607 GLint source_level = static_cast<GLint>(c.source_level); |
| 4608 GLenum dest_target = static_cast<GLenum>(c.dest_target); |
| 4607 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 4609 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 4608 GLint dest_level = static_cast<GLint>(c.dest_level); | 4610 GLint dest_level = static_cast<GLint>(c.dest_level); |
| 4609 GLint xoffset = static_cast<GLint>(c.xoffset); | 4611 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 4610 GLint yoffset = static_cast<GLint>(c.yoffset); | 4612 GLint yoffset = static_cast<GLint>(c.yoffset); |
| 4611 GLint x = static_cast<GLint>(c.x); | 4613 GLint x = static_cast<GLint>(c.x); |
| 4612 GLint y = static_cast<GLint>(c.y); | 4614 GLint y = static_cast<GLint>(c.y); |
| 4613 GLsizei width = static_cast<GLsizei>(c.width); | 4615 GLsizei width = static_cast<GLsizei>(c.width); |
| 4614 GLsizei height = static_cast<GLsizei>(c.height); | 4616 GLsizei height = static_cast<GLsizei>(c.height); |
| 4615 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 4617 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 4616 GLboolean unpack_premultiply_alpha = | 4618 GLboolean unpack_premultiply_alpha = |
| 4617 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 4619 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 4618 GLboolean unpack_unmultiply_alpha = | 4620 GLboolean unpack_unmultiply_alpha = |
| 4619 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 4621 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 4620 if (width < 0) { | 4622 if (width < 0) { |
| 4621 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", | 4623 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", |
| 4622 "width < 0"); | 4624 "width < 0"); |
| 4623 return error::kNoError; | 4625 return error::kNoError; |
| 4624 } | 4626 } |
| 4625 if (height < 0) { | 4627 if (height < 0) { |
| 4626 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", | 4628 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", |
| 4627 "height < 0"); | 4629 "height < 0"); |
| 4628 return error::kNoError; | 4630 return error::kNoError; |
| 4629 } | 4631 } |
| 4630 DoCopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level, | 4632 DoCopySubTextureCHROMIUM(source_id, source_level, dest_target, dest_id, |
| 4631 xoffset, yoffset, x, y, width, height, unpack_flip_y, | 4633 dest_level, xoffset, yoffset, x, y, width, height, |
| 4632 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 4634 unpack_flip_y, unpack_premultiply_alpha, |
| 4635 unpack_unmultiply_alpha); |
| 4633 return error::kNoError; | 4636 return error::kNoError; |
| 4634 } | 4637 } |
| 4635 | 4638 |
| 4636 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( | 4639 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( |
| 4637 uint32_t immediate_data_size, | 4640 uint32_t immediate_data_size, |
| 4638 const volatile void* cmd_data) { | 4641 const volatile void* cmd_data) { |
| 4639 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = | 4642 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = |
| 4640 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( | 4643 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( |
| 4641 cmd_data); | 4644 cmd_data); |
| 4642 GLenum source_id = static_cast<GLenum>(c.source_id); | 4645 GLenum source_id = static_cast<GLenum>(c.source_id); |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5236 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5239 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5237 return true; | 5240 return true; |
| 5238 } | 5241 } |
| 5239 return false; | 5242 return false; |
| 5240 default: | 5243 default: |
| 5241 NOTREACHED(); | 5244 NOTREACHED(); |
| 5242 return false; | 5245 return false; |
| 5243 } | 5246 } |
| 5244 } | 5247 } |
| 5245 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5248 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |