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

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

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add extension Created 5 years, 3 months 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 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after
5079 if (!features().blend_equation_advanced) { 5079 if (!features().blend_equation_advanced) {
5080 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glBlendBarrierKHR", 5080 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glBlendBarrierKHR",
5081 "function not available"); 5081 "function not available");
5082 return error::kNoError; 5082 return error::kNoError;
5083 } 5083 }
5084 5084
5085 glBlendBarrierKHR(); 5085 glBlendBarrierKHR();
5086 return error::kNoError; 5086 return error::kNoError;
5087 } 5087 }
5088 5088
5089 error::Error GLES2DecoderImpl::HandleApplyScreenSpaceAntialiasing(
5090 uint32_t immediate_data_size,
5091 const void* cmd_data) {
5092 const gles2::cmds::ApplyScreenSpaceAntialiasing& c =
5093 *static_cast<const gles2::cmds::ApplyScreenSpaceAntialiasing*>(cmd_data);
5094 (void)c;
5095 if (!features().chromium_screen_space_antialiasing) {
5096 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glApplyScreenSpaceAntialiasing",
5097 "function not available");
5098 return error::kNoError;
5099 }
5100
5101 DoApplyScreenSpaceAntialiasing();
5102 return error::kNoError;
5103 }
5104
5089 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { 5105 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
5090 switch (cap) { 5106 switch (cap) {
5091 case GL_BLEND: 5107 case GL_BLEND:
5092 state_.enable_flags.blend = enabled; 5108 state_.enable_flags.blend = enabled;
5093 if (state_.enable_flags.cached_blend != enabled || 5109 if (state_.enable_flags.cached_blend != enabled ||
5094 state_.ignore_cached_state) { 5110 state_.ignore_cached_state) {
5095 state_.enable_flags.cached_blend = enabled; 5111 state_.enable_flags.cached_blend = enabled;
5096 return true; 5112 return true;
5097 } 5113 }
5098 return false; 5114 return false;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
5173 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; 5189 state_.enable_flags.cached_primitive_restart_fixed_index = enabled;
5174 return true; 5190 return true;
5175 } 5191 }
5176 return false; 5192 return false;
5177 default: 5193 default:
5178 NOTREACHED(); 5194 NOTREACHED();
5179 return false; 5195 return false;
5180 } 5196 }
5181 } 5197 }
5182 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5198 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698