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