| 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 4387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4398 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); | 4398 DoTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); |
| 4399 return error::kNoError; | 4399 return error::kNoError; |
| 4400 } | 4400 } |
| 4401 | 4401 |
| 4402 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( | 4402 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( |
| 4403 uint32_t immediate_data_size, | 4403 uint32_t immediate_data_size, |
| 4404 const void* cmd_data) { | 4404 const void* cmd_data) { |
| 4405 const gles2::cmds::CopyTextureCHROMIUM& c = | 4405 const gles2::cmds::CopyTextureCHROMIUM& c = |
| 4406 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); | 4406 *static_cast<const gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); |
| 4407 (void)c; | 4407 (void)c; |
| 4408 GLenum target = static_cast<GLenum>(c.target); | |
| 4409 GLenum source_id = static_cast<GLenum>(c.source_id); | 4408 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 4410 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 4409 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 4411 GLint internalformat = static_cast<GLint>(c.internalformat); | 4410 GLint internalformat = static_cast<GLint>(c.internalformat); |
| 4412 GLenum dest_type = static_cast<GLenum>(c.dest_type); | 4411 GLenum dest_type = static_cast<GLenum>(c.dest_type); |
| 4413 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 4412 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 4414 GLboolean unpack_premultiply_alpha = | 4413 GLboolean unpack_premultiply_alpha = |
| 4415 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 4414 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 4416 GLboolean unpack_unmultiply_alpha = | 4415 GLboolean unpack_unmultiply_alpha = |
| 4417 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 4416 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 4418 if (!validators_->texture_internal_format.IsValid(internalformat)) { | 4417 if (!validators_->texture_internal_format.IsValid(internalformat)) { |
| 4419 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", | 4418 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", |
| 4420 "internalformat GL_INVALID_VALUE"); | 4419 "internalformat GL_INVALID_VALUE"); |
| 4421 return error::kNoError; | 4420 return error::kNoError; |
| 4422 } | 4421 } |
| 4423 if (!validators_->pixel_type.IsValid(dest_type)) { | 4422 if (!validators_->pixel_type.IsValid(dest_type)) { |
| 4424 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, | 4423 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, |
| 4425 "dest_type"); | 4424 "dest_type"); |
| 4426 return error::kNoError; | 4425 return error::kNoError; |
| 4427 } | 4426 } |
| 4428 DoCopyTextureCHROMIUM(target, source_id, dest_id, internalformat, dest_type, | 4427 DoCopyTextureCHROMIUM(source_id, dest_id, internalformat, dest_type, |
| 4429 unpack_flip_y, unpack_premultiply_alpha, | 4428 unpack_flip_y, unpack_premultiply_alpha, |
| 4430 unpack_unmultiply_alpha); | 4429 unpack_unmultiply_alpha); |
| 4431 return error::kNoError; | 4430 return error::kNoError; |
| 4432 } | 4431 } |
| 4433 | 4432 |
| 4434 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( | 4433 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( |
| 4435 uint32_t immediate_data_size, | 4434 uint32_t immediate_data_size, |
| 4436 const void* cmd_data) { | 4435 const void* cmd_data) { |
| 4437 const gles2::cmds::CopySubTextureCHROMIUM& c = | 4436 const gles2::cmds::CopySubTextureCHROMIUM& c = |
| 4438 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data); | 4437 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data); |
| 4439 (void)c; | 4438 (void)c; |
| 4440 GLenum target = static_cast<GLenum>(c.target); | |
| 4441 GLenum source_id = static_cast<GLenum>(c.source_id); | 4439 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 4442 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 4440 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 4443 GLint xoffset = static_cast<GLint>(c.xoffset); | 4441 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 4444 GLint yoffset = static_cast<GLint>(c.yoffset); | 4442 GLint yoffset = static_cast<GLint>(c.yoffset); |
| 4445 GLint x = static_cast<GLint>(c.x); | 4443 GLint x = static_cast<GLint>(c.x); |
| 4446 GLint y = static_cast<GLint>(c.y); | 4444 GLint y = static_cast<GLint>(c.y); |
| 4447 GLsizei width = static_cast<GLsizei>(c.width); | 4445 GLsizei width = static_cast<GLsizei>(c.width); |
| 4448 GLsizei height = static_cast<GLsizei>(c.height); | 4446 GLsizei height = static_cast<GLsizei>(c.height); |
| 4449 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 4447 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 4450 GLboolean unpack_premultiply_alpha = | 4448 GLboolean unpack_premultiply_alpha = |
| 4451 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 4449 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 4452 GLboolean unpack_unmultiply_alpha = | 4450 GLboolean unpack_unmultiply_alpha = |
| 4453 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 4451 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 4454 if (width < 0) { | 4452 if (width < 0) { |
| 4455 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", | 4453 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", |
| 4456 "width < 0"); | 4454 "width < 0"); |
| 4457 return error::kNoError; | 4455 return error::kNoError; |
| 4458 } | 4456 } |
| 4459 if (height < 0) { | 4457 if (height < 0) { |
| 4460 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", | 4458 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", |
| 4461 "height < 0"); | 4459 "height < 0"); |
| 4462 return error::kNoError; | 4460 return error::kNoError; |
| 4463 } | 4461 } |
| 4464 DoCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, | 4462 DoCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width, |
| 4465 width, height, unpack_flip_y, | 4463 height, unpack_flip_y, unpack_premultiply_alpha, |
| 4466 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 4464 unpack_unmultiply_alpha); |
| 4467 return error::kNoError; | 4465 return error::kNoError; |
| 4468 } | 4466 } |
| 4469 | 4467 |
| 4470 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( | 4468 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( |
| 4471 uint32_t immediate_data_size, | 4469 uint32_t immediate_data_size, |
| 4472 const void* cmd_data) { | 4470 const void* cmd_data) { |
| 4473 const gles2::cmds::CompressedCopyTextureCHROMIUM& c = | 4471 const gles2::cmds::CompressedCopyTextureCHROMIUM& c = |
| 4474 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data); | 4472 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data); |
| 4475 (void)c; | 4473 (void)c; |
| 4476 GLenum target = static_cast<GLenum>(c.target); | 4474 GLenum target = static_cast<GLenum>(c.target); |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5150 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5148 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5151 return true; | 5149 return true; |
| 5152 } | 5150 } |
| 5153 return false; | 5151 return false; |
| 5154 default: | 5152 default: |
| 5155 NOTREACHED(); | 5153 NOTREACHED(); |
| 5156 return false; | 5154 return false; |
| 5157 } | 5155 } |
| 5158 } | 5156 } |
| 5159 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5157 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |