Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698