| 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 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2611 if (height < 0) { | 2611 if (height < 0) { |
| 2612 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glScissor", "height < 0"); | 2612 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glScissor", "height < 0"); |
| 2613 return error::kNoError; | 2613 return error::kNoError; |
| 2614 } | 2614 } |
| 2615 if (state_.scissor_x != x || state_.scissor_y != y || | 2615 if (state_.scissor_x != x || state_.scissor_y != y || |
| 2616 state_.scissor_width != width || state_.scissor_height != height) { | 2616 state_.scissor_width != width || state_.scissor_height != height) { |
| 2617 state_.scissor_x = x; | 2617 state_.scissor_x = x; |
| 2618 state_.scissor_y = y; | 2618 state_.scissor_y = y; |
| 2619 state_.scissor_width = width; | 2619 state_.scissor_width = width; |
| 2620 state_.scissor_height = height; | 2620 state_.scissor_height = height; |
| 2621 glScissor(x, y, width, height); | 2621 DoScissor(x, y, width, height); |
| 2622 } | 2622 } |
| 2623 return error::kNoError; | 2623 return error::kNoError; |
| 2624 } | 2624 } |
| 2625 | 2625 |
| 2626 error::Error GLES2DecoderImpl::HandleShaderSourceBucket( | 2626 error::Error GLES2DecoderImpl::HandleShaderSourceBucket( |
| 2627 uint32_t immediate_data_size, | 2627 uint32_t immediate_data_size, |
| 2628 const volatile void* cmd_data) { | 2628 const volatile void* cmd_data) { |
| 2629 const volatile gles2::cmds::ShaderSourceBucket& c = | 2629 const volatile gles2::cmds::ShaderSourceBucket& c = |
| 2630 *static_cast<const volatile gles2::cmds::ShaderSourceBucket*>(cmd_data); | 2630 *static_cast<const volatile gles2::cmds::ShaderSourceBucket*>(cmd_data); |
| 2631 GLuint shader = static_cast<GLuint>(c.shader); | 2631 GLuint shader = static_cast<GLuint>(c.shader); |
| (...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5283 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5284 return true; | 5284 return true; |
| 5285 } | 5285 } |
| 5286 return false; | 5286 return false; |
| 5287 default: | 5287 default: |
| 5288 NOTREACHED(); | 5288 NOTREACHED(); |
| 5289 return false; | 5289 return false; |
| 5290 } | 5290 } |
| 5291 } | 5291 } |
| 5292 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5292 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |