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 4533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4544 const gles2::cmds::CompressedCopyTextureCHROMIUM& c = | 4544 const gles2::cmds::CompressedCopyTextureCHROMIUM& c = |
4545 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data); | 4545 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data); |
4546 (void)c; | 4546 (void)c; |
4547 GLenum target = static_cast<GLenum>(c.target); | 4547 GLenum target = static_cast<GLenum>(c.target); |
4548 GLenum source_id = static_cast<GLenum>(c.source_id); | 4548 GLenum source_id = static_cast<GLenum>(c.source_id); |
4549 GLenum dest_id = static_cast<GLenum>(c.dest_id); | 4549 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
4550 DoCompressedCopyTextureCHROMIUM(target, source_id, dest_id); | 4550 DoCompressedCopyTextureCHROMIUM(target, source_id, dest_id); |
4551 return error::kNoError; | 4551 return error::kNoError; |
4552 } | 4552 } |
4553 | 4553 |
| 4554 error::Error GLES2DecoderImpl::HandleCompressedCopySubTextureCHROMIUM( |
| 4555 uint32_t immediate_data_size, |
| 4556 const void* cmd_data) { |
| 4557 const gles2::cmds::CompressedCopySubTextureCHROMIUM& c = |
| 4558 *static_cast<const gles2::cmds::CompressedCopySubTextureCHROMIUM*>( |
| 4559 cmd_data); |
| 4560 (void)c; |
| 4561 GLenum target = static_cast<GLenum>(c.target); |
| 4562 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 4563 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 4564 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 4565 GLint yoffset = static_cast<GLint>(c.yoffset); |
| 4566 GLint x = static_cast<GLint>(c.x); |
| 4567 GLint y = static_cast<GLint>(c.y); |
| 4568 GLsizei width = static_cast<GLsizei>(c.width); |
| 4569 GLsizei height = static_cast<GLsizei>(c.height); |
| 4570 if (width < 0) { |
| 4571 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCompressedCopySubTextureCHROMIUM", |
| 4572 "width < 0"); |
| 4573 return error::kNoError; |
| 4574 } |
| 4575 if (height < 0) { |
| 4576 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCompressedCopySubTextureCHROMIUM", |
| 4577 "height < 0"); |
| 4578 return error::kNoError; |
| 4579 } |
| 4580 DoCompressedCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, |
| 4581 yoffset, x, y, width, height); |
| 4582 return error::kNoError; |
| 4583 } |
| 4584 |
4554 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( | 4585 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( |
4555 uint32_t immediate_data_size, | 4586 uint32_t immediate_data_size, |
4556 const void* cmd_data) { | 4587 const void* cmd_data) { |
4557 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = | 4588 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = |
4558 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( | 4589 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( |
4559 cmd_data); | 4590 cmd_data); |
4560 (void)c; | 4591 (void)c; |
4561 GLenum target = static_cast<GLenum>(c.target); | 4592 GLenum target = static_cast<GLenum>(c.target); |
4562 uint32_t data_size; | 4593 uint32_t data_size; |
4563 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { | 4594 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5138 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; | 5169 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; |
5139 return true; | 5170 return true; |
5140 } | 5171 } |
5141 return false; | 5172 return false; |
5142 default: | 5173 default: |
5143 NOTREACHED(); | 5174 NOTREACHED(); |
5144 return false; | 5175 return false; |
5145 } | 5176 } |
5146 } | 5177 } |
5147 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5178 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |