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

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

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix feature_info_unittest Created 6 years, 2 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 3284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 GLenum matrixMode = static_cast<GLenum>(c.matrixMode); 3295 GLenum matrixMode = static_cast<GLenum>(c.matrixMode);
3296 if (!validators_->matrix_mode.IsValid(matrixMode)) { 3296 if (!validators_->matrix_mode.IsValid(matrixMode)) {
3297 LOCAL_SET_GL_ERROR_INVALID_ENUM( 3297 LOCAL_SET_GL_ERROR_INVALID_ENUM(
3298 "glMatrixLoadIdentityCHROMIUM", matrixMode, "matrixMode"); 3298 "glMatrixLoadIdentityCHROMIUM", matrixMode, "matrixMode");
3299 return error::kNoError; 3299 return error::kNoError;
3300 } 3300 }
3301 DoMatrixLoadIdentityCHROMIUM(matrixMode); 3301 DoMatrixLoadIdentityCHROMIUM(matrixMode);
3302 return error::kNoError; 3302 return error::kNoError;
3303 } 3303 }
3304 3304
3305 error::Error GLES2DecoderImpl::HandleBlendBarrierKHR(
3306 uint32_t immediate_data_size,
3307 const void* cmd_data) {
3308 const gles2::cmds::BlendBarrierKHR& c =
3309 *static_cast<const gles2::cmds::BlendBarrierKHR*>(cmd_data);
3310 (void)c;
3311 if (!features().blend_equation_advanced) {
3312 LOCAL_SET_GL_ERROR(
3313 GL_INVALID_OPERATION, "glBlendBarrierKHR", "function not available");
3314 return error::kNoError;
3315 }
3316
3317 glBlendBarrierKHR();
3318 return error::kNoError;
3319 }
3320
3305 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { 3321 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
3306 switch (cap) { 3322 switch (cap) {
3307 case GL_BLEND: 3323 case GL_BLEND:
3308 state_.enable_flags.blend = enabled; 3324 state_.enable_flags.blend = enabled;
3309 if (state_.enable_flags.cached_blend != enabled || 3325 if (state_.enable_flags.cached_blend != enabled ||
3310 state_.ignore_cached_state) { 3326 state_.ignore_cached_state) {
3311 state_.enable_flags.cached_blend = enabled; 3327 state_.enable_flags.cached_blend = enabled;
3312 return true; 3328 return true;
3313 } 3329 }
3314 return false; 3330 return false;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
3373 state_.ignore_cached_state) { 3389 state_.ignore_cached_state) {
3374 framebuffer_state_.clear_state_dirty = true; 3390 framebuffer_state_.clear_state_dirty = true;
3375 } 3391 }
3376 return false; 3392 return false;
3377 default: 3393 default:
3378 NOTREACHED(); 3394 NOTREACHED();
3379 return false; 3395 return false;
3380 } 3396 }
3381 } 3397 }
3382 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 3398 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698