| 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 5089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5100 volatile const GLfloat* transform = | 5100 volatile const GLfloat* transform = |
| 5101 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, | 5101 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, |
| 5102 immediate_data_size); | 5102 immediate_data_size); |
| 5103 if (transform == NULL) { | 5103 if (transform == NULL) { |
| 5104 return error::kOutOfBounds; | 5104 return error::kOutOfBounds; |
| 5105 } | 5105 } |
| 5106 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); | 5106 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); |
| 5107 return error::kNoError; | 5107 return error::kNoError; |
| 5108 } | 5108 } |
| 5109 | 5109 |
| 5110 error::Error GLES2DecoderImpl::HandleSendOverlayPromotionHintCHROMIUM( |
| 5111 uint32_t immediate_data_size, |
| 5112 const volatile void* cmd_data) { |
| 5113 const volatile gles2::cmds::SendOverlayPromotionHintCHROMIUM& c = |
| 5114 *static_cast< |
| 5115 const volatile gles2::cmds::SendOverlayPromotionHintCHROMIUM*>( |
| 5116 cmd_data); |
| 5117 GLuint texture = c.texture; |
| 5118 GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint); |
| 5119 GLint display_x = static_cast<GLint>(c.display_x); |
| 5120 GLint display_y = static_cast<GLint>(c.display_y); |
| 5121 DoSendOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, |
| 5122 display_y); |
| 5123 return error::kNoError; |
| 5124 } |
| 5125 |
| 5110 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5126 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
| 5111 switch (cap) { | 5127 switch (cap) { |
| 5112 case GL_BLEND: | 5128 case GL_BLEND: |
| 5113 state_.enable_flags.blend = enabled; | 5129 state_.enable_flags.blend = enabled; |
| 5114 if (state_.enable_flags.cached_blend != enabled || | 5130 if (state_.enable_flags.cached_blend != enabled || |
| 5115 state_.ignore_cached_state) { | 5131 state_.ignore_cached_state) { |
| 5116 state_.enable_flags.cached_blend = enabled; | 5132 state_.enable_flags.cached_blend = enabled; |
| 5117 return true; | 5133 return true; |
| 5118 } | 5134 } |
| 5119 return false; | 5135 return false; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5218 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5234 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5219 return true; | 5235 return true; |
| 5220 } | 5236 } |
| 5221 return false; | 5237 return false; |
| 5222 default: | 5238 default: |
| 5223 NOTREACHED(); | 5239 NOTREACHED(); |
| 5224 return false; | 5240 return false; |
| 5225 } | 5241 } |
| 5226 } | 5242 } |
| 5227 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5243 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |