| 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 5084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5095 volatile const GLfloat* transform = | 5095 volatile const GLfloat* transform = |
| 5096 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, | 5096 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, |
| 5097 immediate_data_size); | 5097 immediate_data_size); |
| 5098 if (transform == NULL) { | 5098 if (transform == NULL) { |
| 5099 return error::kOutOfBounds; | 5099 return error::kOutOfBounds; |
| 5100 } | 5100 } |
| 5101 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); | 5101 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); |
| 5102 return error::kNoError; | 5102 return error::kNoError; |
| 5103 } | 5103 } |
| 5104 | 5104 |
| 5105 error::Error GLES2DecoderImpl::HandleSetSurfaceHandleCHROMIUM( |
| 5106 uint32_t immediate_data_size, |
| 5107 const volatile void* cmd_data) { |
| 5108 const volatile gles2::cmds::SetSurfaceHandleCHROMIUM& c = |
| 5109 *static_cast<const volatile gles2::cmds::SetSurfaceHandleCHROMIUM*>( |
| 5110 cmd_data); |
| 5111 GLint surfaceHandle = static_cast<GLint>(c.surfaceHandle); |
| 5112 DoSetSurfaceHandleCHROMIUM(surfaceHandle); |
| 5113 return error::kNoError; |
| 5114 } |
| 5115 |
| 5105 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5116 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
| 5106 switch (cap) { | 5117 switch (cap) { |
| 5107 case GL_BLEND: | 5118 case GL_BLEND: |
| 5108 state_.enable_flags.blend = enabled; | 5119 state_.enable_flags.blend = enabled; |
| 5109 if (state_.enable_flags.cached_blend != enabled || | 5120 if (state_.enable_flags.cached_blend != enabled || |
| 5110 state_.ignore_cached_state) { | 5121 state_.ignore_cached_state) { |
| 5111 state_.enable_flags.cached_blend = enabled; | 5122 state_.enable_flags.cached_blend = enabled; |
| 5112 return true; | 5123 return true; |
| 5113 } | 5124 } |
| 5114 return false; | 5125 return false; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5205 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5216 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5206 return true; | 5217 return true; |
| 5207 } | 5218 } |
| 5208 return false; | 5219 return false; |
| 5209 default: | 5220 default: |
| 5210 NOTREACHED(); | 5221 NOTREACHED(); |
| 5211 return false; | 5222 return false; |
| 5212 } | 5223 } |
| 5213 } | 5224 } |
| 5214 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5225 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |