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

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 for commit 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 4977 matching lines...) Expand 10 before | Expand all | Expand 10 after
4988 if (state_.stencil_path_func != func || state_.stencil_path_ref != ref || 4988 if (state_.stencil_path_func != func || state_.stencil_path_ref != ref ||
4989 state_.stencil_path_mask != mask) { 4989 state_.stencil_path_mask != mask) {
4990 state_.stencil_path_func = func; 4990 state_.stencil_path_func = func;
4991 state_.stencil_path_ref = ref; 4991 state_.stencil_path_ref = ref;
4992 state_.stencil_path_mask = mask; 4992 state_.stencil_path_mask = mask;
4993 glPathStencilFuncNV(func, ref, mask); 4993 glPathStencilFuncNV(func, ref, mask);
4994 } 4994 }
4995 return error::kNoError; 4995 return error::kNoError;
4996 } 4996 }
4997 4997
4998 error::Error GLES2DecoderImpl::HandleCoverageModulationCHROMIUM(
4999 uint32_t immediate_data_size,
5000 const void* cmd_data) {
5001 const gles2::cmds::CoverageModulationCHROMIUM& c =
5002 *static_cast<const gles2::cmds::CoverageModulationCHROMIUM*>(cmd_data);
5003 (void)c;
5004 if (!features().chromium_framebuffer_mixed_samples) {
5005 return error::kUnknownCommand;
5006 }
5007
5008 GLenum components = static_cast<GLenum>(c.components);
5009 if (!validators_->coverage_modulation_components.IsValid(components)) {
5010 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCoverageModulationCHROMIUM", components,
5011 "components");
5012 return error::kNoError;
5013 }
5014 if (state_.coverage_modulation != components) {
5015 state_.coverage_modulation = components;
5016 glCoverageModulationNV(components);
5017 }
5018 return error::kNoError;
5019 }
5020
4998 error::Error GLES2DecoderImpl::HandleBlendBarrierKHR( 5021 error::Error GLES2DecoderImpl::HandleBlendBarrierKHR(
4999 uint32_t immediate_data_size, 5022 uint32_t immediate_data_size,
5000 const void* cmd_data) { 5023 const void* cmd_data) {
5001 const gles2::cmds::BlendBarrierKHR& c = 5024 const gles2::cmds::BlendBarrierKHR& c =
5002 *static_cast<const gles2::cmds::BlendBarrierKHR*>(cmd_data); 5025 *static_cast<const gles2::cmds::BlendBarrierKHR*>(cmd_data);
5003 (void)c; 5026 (void)c;
5004 if (!features().blend_equation_advanced) { 5027 if (!features().blend_equation_advanced) {
5005 return error::kUnknownCommand; 5028 return error::kUnknownCommand;
5006 } 5029 }
5007 5030
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
5127 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5150 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5128 return true; 5151 return true;
5129 } 5152 }
5130 return false; 5153 return false;
5131 default: 5154 default:
5132 NOTREACHED(); 5155 NOTREACHED();
5133 return false; 5156 return false;
5134 } 5157 }
5135 } 5158 }
5136 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5159 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698