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

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

Issue 2150993002: Revert of Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 5494 matching lines...) Expand 10 before | Expand all | Expand 10 after
5505 (void)c; 5505 (void)c;
5506 GLint location = static_cast<GLint>(c.location); 5506 GLint location = static_cast<GLint>(c.location);
5507 GLboolean transpose = static_cast<GLboolean>(c.transpose); 5507 GLboolean transpose = static_cast<GLboolean>(c.transpose);
5508 uint32_t data_size; 5508 uint32_t data_size;
5509 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { 5509 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) {
5510 return error::kOutOfBounds; 5510 return error::kOutOfBounds;
5511 } 5511 }
5512 if (data_size > immediate_data_size) { 5512 if (data_size > immediate_data_size) {
5513 return error::kOutOfBounds; 5513 return error::kOutOfBounds;
5514 } 5514 }
5515 const GLfloat* transform = 5515 const GLfloat* default_value =
5516 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); 5516 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size);
5517 if (transform == NULL) { 5517 if (default_value == NULL) {
5518 return error::kOutOfBounds; 5518 return error::kOutOfBounds;
5519 } 5519 }
5520 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); 5520 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose,
5521 default_value);
5521 return error::kNoError; 5522 return error::kNoError;
5522 } 5523 }
5523 5524
5524 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { 5525 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
5525 switch (cap) { 5526 switch (cap) {
5526 case GL_BLEND: 5527 case GL_BLEND:
5527 state_.enable_flags.blend = enabled; 5528 state_.enable_flags.blend = enabled;
5528 if (state_.enable_flags.cached_blend != enabled || 5529 if (state_.enable_flags.cached_blend != enabled ||
5529 state_.ignore_cached_state) { 5530 state_.ignore_cached_state) {
5530 state_.enable_flags.cached_blend = enabled; 5531 state_.enable_flags.cached_blend = enabled;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
5624 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5625 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5625 return true; 5626 return true;
5626 } 5627 }
5627 return false; 5628 return false;
5628 default: 5629 default:
5629 NOTREACHED(); 5630 NOTREACHED();
5630 return false; 5631 return false;
5631 } 5632 }
5632 } 5633 }
5633 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5634 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698