| 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 5500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5511 volatile const GLfloat* transform = | 5511 volatile const GLfloat* transform = |
| 5512 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, | 5512 GetImmediateDataAs<volatile const GLfloat*>(c, data_size, |
| 5513 immediate_data_size); | 5513 immediate_data_size); |
| 5514 if (transform == NULL) { | 5514 if (transform == NULL) { |
| 5515 return error::kOutOfBounds; | 5515 return error::kOutOfBounds; |
| 5516 } | 5516 } |
| 5517 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); | 5517 DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, transform); |
| 5518 return error::kNoError; | 5518 return error::kNoError; |
| 5519 } | 5519 } |
| 5520 | 5520 |
| 5521 error::Error GLES2DecoderImpl::HandleSetSurfaceHandleCHROMIUM( |
| 5522 uint32_t immediate_data_size, |
| 5523 const volatile void* cmd_data) { |
| 5524 const volatile gles2::cmds::SetSurfaceHandleCHROMIUM& c = |
| 5525 *static_cast<const volatile gles2::cmds::SetSurfaceHandleCHROMIUM*>( |
| 5526 cmd_data); |
| 5527 GLint surfaceHandle = static_cast<GLint>(c.surfaceHandle); |
| 5528 DoSetSurfaceHandleCHROMIUM(surfaceHandle); |
| 5529 return error::kNoError; |
| 5530 } |
| 5531 |
| 5521 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { | 5532 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { |
| 5522 switch (cap) { | 5533 switch (cap) { |
| 5523 case GL_BLEND: | 5534 case GL_BLEND: |
| 5524 state_.enable_flags.blend = enabled; | 5535 state_.enable_flags.blend = enabled; |
| 5525 if (state_.enable_flags.cached_blend != enabled || | 5536 if (state_.enable_flags.cached_blend != enabled || |
| 5526 state_.ignore_cached_state) { | 5537 state_.ignore_cached_state) { |
| 5527 state_.enable_flags.cached_blend = enabled; | 5538 state_.enable_flags.cached_blend = enabled; |
| 5528 return true; | 5539 return true; |
| 5529 } | 5540 } |
| 5530 return false; | 5541 return false; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5621 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5632 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5622 return true; | 5633 return true; |
| 5623 } | 5634 } |
| 5624 return false; | 5635 return false; |
| 5625 default: | 5636 default: |
| 5626 NOTREACHED(); | 5637 NOTREACHED(); |
| 5627 return false; | 5638 return false; |
| 5628 } | 5639 } |
| 5629 } | 5640 } |
| 5630 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5641 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |