OLD | NEW |
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 5013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5024 (void)c; | 5024 (void)c; |
5025 GLint location = static_cast<GLint>(c.location); | 5025 GLint location = static_cast<GLint>(c.location); |
5026 GLboolean transpose = static_cast<GLboolean>(c.transpose); | 5026 GLboolean transpose = static_cast<GLboolean>(c.transpose); |
5027 uint32_t data_size; | 5027 uint32_t data_size; |
5028 if (!ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { | 5028 if (!ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { |
5029 return error::kOutOfBounds; | 5029 return error::kOutOfBounds; |
5030 } | 5030 } |
5031 if (data_size > immediate_data_size) { | 5031 if (data_size > immediate_data_size) { |
5032 return error::kOutOfBounds; | 5032 return error::kOutOfBounds; |
5033 } | 5033 } |
5034 const GLfloat* default_value = | 5034 const GLfloat* transform = |
5035 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); | 5035 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); |
5036 if (default_value == NULL) { | 5036 if (transform == NULL) { |
5037 return error::kOutOfBounds; | 5037 return error::kOutOfBounds; |
5038 } | 5038 } |
5039 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, | 5039 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); |
5040 default_value); | |
5041 return error::kNoError; | 5040 return error::kNoError; |
5042 } | 5041 } |
5043 | 5042 |
5044 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5043 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
5045 switch (cap) { | 5044 switch (cap) { |
5046 case GL_BLEND: | 5045 case GL_BLEND: |
5047 state_.enable_flags.blend = enabled; | 5046 state_.enable_flags.blend = enabled; |
5048 if (state_.enable_flags.cached_blend != enabled || | 5047 if (state_.enable_flags.cached_blend != enabled || |
5049 state_.ignore_cached_state) { | 5048 state_.ignore_cached_state) { |
5050 state_.enable_flags.cached_blend = enabled; | 5049 state_.enable_flags.cached_blend = enabled; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5144 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5143 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5145 return true; | 5144 return true; |
5146 } | 5145 } |
5147 return false; | 5146 return false; |
5148 default: | 5147 default: |
5149 NOTREACHED(); | 5148 NOTREACHED(); |
5150 return false; | 5149 return false; |
5151 } | 5150 } |
5152 } | 5151 } |
5153 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5152 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |