| 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 5021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5032 if (state_.stencil_path_func != func || state_.stencil_path_ref != ref || | 5032 if (state_.stencil_path_func != func || state_.stencil_path_ref != ref || |
| 5033 state_.stencil_path_mask != mask) { | 5033 state_.stencil_path_mask != mask) { |
| 5034 state_.stencil_path_func = func; | 5034 state_.stencil_path_func = func; |
| 5035 state_.stencil_path_ref = ref; | 5035 state_.stencil_path_ref = ref; |
| 5036 state_.stencil_path_mask = mask; | 5036 state_.stencil_path_mask = mask; |
| 5037 glPathStencilFuncNV(func, ref, mask); | 5037 glPathStencilFuncNV(func, ref, mask); |
| 5038 } | 5038 } |
| 5039 return error::kNoError; | 5039 return error::kNoError; |
| 5040 } | 5040 } |
| 5041 | 5041 |
| 5042 error::Error GLES2DecoderImpl::HandleCoverageModulationCHROMIUM( |
| 5043 uint32_t immediate_data_size, |
| 5044 const void* cmd_data) { |
| 5045 const gles2::cmds::CoverageModulationCHROMIUM& c = |
| 5046 *static_cast<const gles2::cmds::CoverageModulationCHROMIUM*>(cmd_data); |
| 5047 (void)c; |
| 5048 if (!features().chromium_framebuffer_mixed_samples) { |
| 5049 return error::kUnknownCommand; |
| 5050 } |
| 5051 |
| 5052 GLenum components = static_cast<GLenum>(c.components); |
| 5053 if (!validators_->coverage_modulation_components.IsValid(components)) { |
| 5054 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCoverageModulationCHROMIUM", components, |
| 5055 "components"); |
| 5056 return error::kNoError; |
| 5057 } |
| 5058 if (state_.coverage_modulation != components) { |
| 5059 state_.coverage_modulation = components; |
| 5060 glCoverageModulationNV(components); |
| 5061 } |
| 5062 return error::kNoError; |
| 5063 } |
| 5064 |
| 5042 error::Error GLES2DecoderImpl::HandleBlendBarrierKHR( | 5065 error::Error GLES2DecoderImpl::HandleBlendBarrierKHR( |
| 5043 uint32_t immediate_data_size, | 5066 uint32_t immediate_data_size, |
| 5044 const void* cmd_data) { | 5067 const void* cmd_data) { |
| 5045 const gles2::cmds::BlendBarrierKHR& c = | 5068 const gles2::cmds::BlendBarrierKHR& c = |
| 5046 *static_cast<const gles2::cmds::BlendBarrierKHR*>(cmd_data); | 5069 *static_cast<const gles2::cmds::BlendBarrierKHR*>(cmd_data); |
| 5047 (void)c; | 5070 (void)c; |
| 5048 if (!features().blend_equation_advanced) { | 5071 if (!features().blend_equation_advanced) { |
| 5049 return error::kUnknownCommand; | 5072 return error::kUnknownCommand; |
| 5050 } | 5073 } |
| 5051 | 5074 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5171 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5194 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5172 return true; | 5195 return true; |
| 5173 } | 5196 } |
| 5174 return false; | 5197 return false; |
| 5175 default: | 5198 default: |
| 5176 NOTREACHED(); | 5199 NOTREACHED(); |
| 5177 return false; | 5200 return false; |
| 5178 } | 5201 } |
| 5179 } | 5202 } |
| 5180 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5203 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |