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 5103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5114 *static_cast<const volatile gles2::cmds::OverlayPromotionHintCHROMIUM*>( | 5114 *static_cast<const volatile gles2::cmds::OverlayPromotionHintCHROMIUM*>( |
5115 cmd_data); | 5115 cmd_data); |
5116 GLuint texture = c.texture; | 5116 GLuint texture = c.texture; |
5117 GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint); | 5117 GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint); |
5118 GLint display_x = static_cast<GLint>(c.display_x); | 5118 GLint display_x = static_cast<GLint>(c.display_x); |
5119 GLint display_y = static_cast<GLint>(c.display_y); | 5119 GLint display_y = static_cast<GLint>(c.display_y); |
5120 DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, display_y); | 5120 DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, display_y); |
5121 return error::kNoError; | 5121 return error::kNoError; |
5122 } | 5122 } |
5123 | 5123 |
| 5124 error::Error GLES2DecoderImpl::HandleSetSurfaceHandleCHROMIUM( |
| 5125 uint32_t immediate_data_size, |
| 5126 const volatile void* cmd_data) { |
| 5127 const volatile gles2::cmds::SetSurfaceHandleCHROMIUM& c = |
| 5128 *static_cast<const volatile gles2::cmds::SetSurfaceHandleCHROMIUM*>( |
| 5129 cmd_data); |
| 5130 GLint surfaceHandle = static_cast<GLint>(c.surfaceHandle); |
| 5131 DoSetSurfaceHandleCHROMIUM(surfaceHandle); |
| 5132 return error::kNoError; |
| 5133 } |
| 5134 |
5124 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5135 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
5125 switch (cap) { | 5136 switch (cap) { |
5126 case GL_BLEND: | 5137 case GL_BLEND: |
5127 state_.enable_flags.blend = enabled; | 5138 state_.enable_flags.blend = enabled; |
5128 if (state_.enable_flags.cached_blend != enabled || | 5139 if (state_.enable_flags.cached_blend != enabled || |
5129 state_.ignore_cached_state) { | 5140 state_.ignore_cached_state) { |
5130 state_.enable_flags.cached_blend = enabled; | 5141 state_.enable_flags.cached_blend = enabled; |
5131 return true; | 5142 return true; |
5132 } | 5143 } |
5133 return false; | 5144 return false; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5232 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5243 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5233 return true; | 5244 return true; |
5234 } | 5245 } |
5235 return false; | 5246 return false; |
5236 default: | 5247 default: |
5237 NOTREACHED(); | 5248 NOTREACHED(); |
5238 return false; | 5249 return false; |
5239 } | 5250 } |
5240 } | 5251 } |
5241 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5252 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |