| 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 return error::kNoError; | 1099 return error::kNoError; |
| 1100 } | 1100 } |
| 1101 if (width < 0) { | 1101 if (width < 0) { |
| 1102 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTexSubImage3D", "width < 0"); | 1102 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTexSubImage3D", "width < 0"); |
| 1103 return error::kNoError; | 1103 return error::kNoError; |
| 1104 } | 1104 } |
| 1105 if (height < 0) { | 1105 if (height < 0) { |
| 1106 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTexSubImage3D", "height < 0"); | 1106 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTexSubImage3D", "height < 0"); |
| 1107 return error::kNoError; | 1107 return error::kNoError; |
| 1108 } | 1108 } |
| 1109 glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, | 1109 DoCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, |
| 1110 height); | 1110 height); |
| 1111 return error::kNoError; | 1111 return error::kNoError; |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 error::Error GLES2DecoderImpl::HandleCreateProgram(uint32_t immediate_data_size, | 1114 error::Error GLES2DecoderImpl::HandleCreateProgram(uint32_t immediate_data_size, |
| 1115 const void* cmd_data) { | 1115 const void* cmd_data) { |
| 1116 const gles2::cmds::CreateProgram& c = | 1116 const gles2::cmds::CreateProgram& c = |
| 1117 *static_cast<const gles2::cmds::CreateProgram*>(cmd_data); | 1117 *static_cast<const gles2::cmds::CreateProgram*>(cmd_data); |
| 1118 (void)c; | 1118 (void)c; |
| 1119 uint32_t client_id = c.client_id; | 1119 uint32_t client_id = c.client_id; |
| (...skipping 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5659 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5659 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5660 return true; | 5660 return true; |
| 5661 } | 5661 } |
| 5662 return false; | 5662 return false; |
| 5663 default: | 5663 default: |
| 5664 NOTREACHED(); | 5664 NOTREACHED(); |
| 5665 return false; | 5665 return false; |
| 5666 } | 5666 } |
| 5667 } | 5667 } |
| 5668 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5668 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |