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

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

Issue 2009073002: command_buffer: Guard on extension and profiles in the decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for GL errors in the unittest Created 4 years, 7 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if ((cull_mode != prev_state->cull_mode)) 281 if ((cull_mode != prev_state->cull_mode))
282 glCullFace(cull_mode); 282 glCullFace(cull_mode);
283 if ((depth_func != prev_state->depth_func)) 283 if ((depth_func != prev_state->depth_func))
284 glDepthFunc(depth_func); 284 glDepthFunc(depth_func);
285 if ((cached_depth_mask != prev_state->cached_depth_mask)) 285 if ((cached_depth_mask != prev_state->cached_depth_mask))
286 glDepthMask(cached_depth_mask); 286 glDepthMask(cached_depth_mask);
287 if ((z_near != prev_state->z_near) || (z_far != prev_state->z_far)) 287 if ((z_near != prev_state->z_near) || (z_far != prev_state->z_far))
288 glDepthRange(z_near, z_far); 288 glDepthRange(z_near, z_far);
289 if ((front_face != prev_state->front_face)) 289 if ((front_face != prev_state->front_face))
290 glFrontFace(front_face); 290 glFrontFace(front_face);
291 if (prev_state->hint_generate_mipmap != hint_generate_mipmap) { 291 if (!feature_info_->gl_version_info().is_desktop_core_profile) {
292 if (!feature_info_->gl_version_info().is_desktop_core_profile) { 292 if (prev_state->hint_generate_mipmap != hint_generate_mipmap) {
293 glHint(GL_GENERATE_MIPMAP_HINT, hint_generate_mipmap); 293 glHint(GL_GENERATE_MIPMAP_HINT, hint_generate_mipmap);
294 } 294 }
295 } 295 }
296 if (feature_info_->feature_flags().oes_standard_derivatives) { 296 if (feature_info_->feature_flags().oes_standard_derivatives) {
297 if (prev_state->hint_fragment_shader_derivative != 297 if (prev_state->hint_fragment_shader_derivative !=
298 hint_fragment_shader_derivative) { 298 hint_fragment_shader_derivative) {
299 glHint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES, 299 glHint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES,
300 hint_fragment_shader_derivative); 300 hint_fragment_shader_derivative);
301 } 301 }
302 } 302 }
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 *num_written = 1; 1322 *num_written = 1;
1323 if (params) { 1323 if (params) {
1324 params[0] = static_cast<GLfloat>(enable_flags.sample_alpha_to_one_ext); 1324 params[0] = static_cast<GLfloat>(enable_flags.sample_alpha_to_one_ext);
1325 } 1325 }
1326 return true; 1326 return true;
1327 default: 1327 default:
1328 return false; 1328 return false;
1329 } 1329 }
1330 } 1330 }
1331 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ 1331 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698