| 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 5187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5198 GLint imageId = static_cast<GLint>(c.imageId); | 5198 GLint imageId = static_cast<GLint>(c.imageId); |
| 5199 if (!validators_->texture_bind_target.IsValid(target)) { | 5199 if (!validators_->texture_bind_target.IsValid(target)) { |
| 5200 LOCAL_SET_GL_ERROR_INVALID_ENUM("glReleaseTexImage2DCHROMIUM", target, | 5200 LOCAL_SET_GL_ERROR_INVALID_ENUM("glReleaseTexImage2DCHROMIUM", target, |
| 5201 "target"); | 5201 "target"); |
| 5202 return error::kNoError; | 5202 return error::kNoError; |
| 5203 } | 5203 } |
| 5204 DoReleaseTexImage2DCHROMIUM(target, imageId); | 5204 DoReleaseTexImage2DCHROMIUM(target, imageId); |
| 5205 return error::kNoError; | 5205 return error::kNoError; |
| 5206 } | 5206 } |
| 5207 | 5207 |
| 5208 error::Error GLES2DecoderImpl::HandleCopyImageSubDataCHROMIUM( |
| 5209 uint32_t immediate_data_size, |
| 5210 const volatile void* cmd_data) { |
| 5211 const volatile gles2::cmds::CopyImageSubDataCHROMIUM& c = |
| 5212 *static_cast<const volatile gles2::cmds::CopyImageSubDataCHROMIUM*>( |
| 5213 cmd_data); |
| 5214 GLint source_image_id = static_cast<GLint>(c.source_image_id); |
| 5215 GLint dest_texture_id = static_cast<GLint>(c.dest_texture_id); |
| 5216 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 5217 GLint yoffset = static_cast<GLint>(c.yoffset); |
| 5218 GLint x = static_cast<GLint>(c.x); |
| 5219 GLint y = static_cast<GLint>(c.y); |
| 5220 GLsizei width = static_cast<GLsizei>(c.width); |
| 5221 GLsizei height = static_cast<GLsizei>(c.height); |
| 5222 GLint in_fence_id = static_cast<GLint>(c.in_fence_id); |
| 5223 GLint out_fence_id = static_cast<GLint>(c.out_fence_id); |
| 5224 if (width < 0) { |
| 5225 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM", |
| 5226 "width < 0"); |
| 5227 return error::kNoError; |
| 5228 } |
| 5229 if (height < 0) { |
| 5230 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM", |
| 5231 "height < 0"); |
| 5232 return error::kNoError; |
| 5233 } |
| 5234 DoCopyImageSubDataCHROMIUM(source_image_id, dest_texture_id, xoffset, yoffset, |
| 5235 x, y, width, height, in_fence_id, out_fence_id); |
| 5236 return error::kNoError; |
| 5237 } |
| 5238 |
| 5208 error::Error GLES2DecoderImpl::HandleTraceEndCHROMIUM( | 5239 error::Error GLES2DecoderImpl::HandleTraceEndCHROMIUM( |
| 5209 uint32_t immediate_data_size, | 5240 uint32_t immediate_data_size, |
| 5210 const volatile void* cmd_data) { | 5241 const volatile void* cmd_data) { |
| 5211 DoTraceEndCHROMIUM(); | 5242 DoTraceEndCHROMIUM(); |
| 5212 return error::kNoError; | 5243 return error::kNoError; |
| 5213 } | 5244 } |
| 5214 | 5245 |
| 5215 error::Error GLES2DecoderImpl::HandleDiscardFramebufferEXTImmediate( | 5246 error::Error GLES2DecoderImpl::HandleDiscardFramebufferEXTImmediate( |
| 5216 uint32_t immediate_data_size, | 5247 uint32_t immediate_data_size, |
| 5217 const volatile void* cmd_data) { | 5248 const volatile void* cmd_data) { |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5622 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5653 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5623 return true; | 5654 return true; |
| 5624 } | 5655 } |
| 5625 return false; | 5656 return false; |
| 5626 default: | 5657 default: |
| 5627 NOTREACHED(); | 5658 NOTREACHED(); |
| 5628 return false; | 5659 return false; |
| 5629 } | 5660 } |
| 5630 } | 5661 } |
| 5631 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5662 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |