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 5107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5118 *static_cast<const volatile gles2::cmds::OverlayPromotionHintCHROMIUM*>( | 5118 *static_cast<const volatile gles2::cmds::OverlayPromotionHintCHROMIUM*>( |
5119 cmd_data); | 5119 cmd_data); |
5120 GLuint texture = c.texture; | 5120 GLuint texture = c.texture; |
5121 GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint); | 5121 GLboolean promotion_hint = static_cast<GLboolean>(c.promotion_hint); |
5122 GLint display_x = static_cast<GLint>(c.display_x); | 5122 GLint display_x = static_cast<GLint>(c.display_x); |
5123 GLint display_y = static_cast<GLint>(c.display_y); | 5123 GLint display_y = static_cast<GLint>(c.display_y); |
5124 DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, display_y); | 5124 DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, display_y); |
5125 return error::kNoError; | 5125 return error::kNoError; |
5126 } | 5126 } |
5127 | 5127 |
| 5128 error::Error GLES2DecoderImpl::HandlePerformanceHintCHROMIUM( |
| 5129 uint32_t immediate_data_size, |
| 5130 const volatile void* cmd_data) { |
| 5131 const volatile gles2::cmds::PerformanceHintCHROMIUM& c = |
| 5132 *static_cast<const volatile gles2::cmds::PerformanceHintCHROMIUM*>( |
| 5133 cmd_data); |
| 5134 GLenum mode = static_cast<GLenum>(c.mode); |
| 5135 if (!validators_->performance_hint_mode.IsValid(mode)) { |
| 5136 LOCAL_SET_GL_ERROR_INVALID_ENUM("glPerformanceHintCHROMIUM", mode, "mode"); |
| 5137 return error::kNoError; |
| 5138 } |
| 5139 DoPerformanceHintCHROMIUM(mode); |
| 5140 return error::kNoError; |
| 5141 } |
| 5142 |
5128 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5143 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
5129 switch (cap) { | 5144 switch (cap) { |
5130 case GL_BLEND: | 5145 case GL_BLEND: |
5131 state_.enable_flags.blend = enabled; | 5146 state_.enable_flags.blend = enabled; |
5132 if (state_.enable_flags.cached_blend != enabled || | 5147 if (state_.enable_flags.cached_blend != enabled || |
5133 state_.ignore_cached_state) { | 5148 state_.ignore_cached_state) { |
5134 state_.enable_flags.cached_blend = enabled; | 5149 state_.enable_flags.cached_blend = enabled; |
5135 return true; | 5150 return true; |
5136 } | 5151 } |
5137 return false; | 5152 return false; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5236 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5251 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5237 return true; | 5252 return true; |
5238 } | 5253 } |
5239 return false; | 5254 return false; |
5240 default: | 5255 default: |
5241 NOTREACHED(); | 5256 NOTREACHED(); |
5242 return false; | 5257 return false; |
5243 } | 5258 } |
5244 } | 5259 } |
5245 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5260 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |