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 5140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5151 "count < 0"); | 5151 "count < 0"); |
5152 return error::kNoError; | 5152 return error::kNoError; |
5153 } | 5153 } |
5154 if (rects == NULL) { | 5154 if (rects == NULL) { |
5155 return error::kOutOfBounds; | 5155 return error::kOutOfBounds; |
5156 } | 5156 } |
5157 DoSwapBuffersWithBoundsCHROMIUM(count, rects); | 5157 DoSwapBuffersWithBoundsCHROMIUM(count, rects); |
5158 return error::kNoError; | 5158 return error::kNoError; |
5159 } | 5159 } |
5160 | 5160 |
| 5161 error::Error GLES2DecoderImpl::HandleSetDrawRectangleCHROMIUM( |
| 5162 uint32_t immediate_data_size, |
| 5163 const volatile void* cmd_data) { |
| 5164 const volatile gles2::cmds::SetDrawRectangleCHROMIUM& c = |
| 5165 *static_cast<const volatile gles2::cmds::SetDrawRectangleCHROMIUM*>( |
| 5166 cmd_data); |
| 5167 GLint x = static_cast<GLint>(c.x); |
| 5168 GLint y = static_cast<GLint>(c.y); |
| 5169 GLint width = static_cast<GLint>(c.width); |
| 5170 GLint height = static_cast<GLint>(c.height); |
| 5171 DoSetDrawRectangleCHROMIUM(x, y, width, height); |
| 5172 return error::kNoError; |
| 5173 } |
| 5174 |
5161 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5175 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
5162 switch (cap) { | 5176 switch (cap) { |
5163 case GL_BLEND: | 5177 case GL_BLEND: |
5164 state_.enable_flags.blend = enabled; | 5178 state_.enable_flags.blend = enabled; |
5165 if (state_.enable_flags.cached_blend != enabled || | 5179 if (state_.enable_flags.cached_blend != enabled || |
5166 state_.ignore_cached_state) { | 5180 state_.ignore_cached_state) { |
5167 state_.enable_flags.cached_blend = enabled; | 5181 state_.enable_flags.cached_blend = enabled; |
5168 return true; | 5182 return true; |
5169 } | 5183 } |
5170 return false; | 5184 return false; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5269 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5283 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
5270 return true; | 5284 return true; |
5271 } | 5285 } |
5272 return false; | 5286 return false; |
5273 default: | 5287 default: |
5274 NOTREACHED(); | 5288 NOTREACHED(); |
5275 return false; | 5289 return false; |
5276 } | 5290 } |
5277 } | 5291 } |
5278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5292 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |