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 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4883 error::Error GLES2DecoderImpl::HandleSwapInterval(uint32_t immediate_data_size, | 4883 error::Error GLES2DecoderImpl::HandleSwapInterval(uint32_t immediate_data_size, |
4884 const void* cmd_data) { | 4884 const void* cmd_data) { |
4885 const gles2::cmds::SwapInterval& c = | 4885 const gles2::cmds::SwapInterval& c = |
4886 *static_cast<const gles2::cmds::SwapInterval*>(cmd_data); | 4886 *static_cast<const gles2::cmds::SwapInterval*>(cmd_data); |
4887 (void)c; | 4887 (void)c; |
4888 GLint interval = static_cast<GLint>(c.interval); | 4888 GLint interval = static_cast<GLint>(c.interval); |
4889 DoSwapInterval(interval); | 4889 DoSwapInterval(interval); |
4890 return error::kNoError; | 4890 return error::kNoError; |
4891 } | 4891 } |
4892 | 4892 |
| 4893 error::Error GLES2DecoderImpl::HandleFlushDriverCachesCHROMIUM( |
| 4894 uint32_t immediate_data_size, |
| 4895 const void* cmd_data) { |
| 4896 const gles2::cmds::FlushDriverCachesCHROMIUM& c = |
| 4897 *static_cast<const gles2::cmds::FlushDriverCachesCHROMIUM*>(cmd_data); |
| 4898 (void)c; |
| 4899 DoFlushDriverCachesCHROMIUM(); |
| 4900 return error::kNoError; |
| 4901 } |
| 4902 |
4893 error::Error GLES2DecoderImpl::HandleMatrixLoadfCHROMIUMImmediate( | 4903 error::Error GLES2DecoderImpl::HandleMatrixLoadfCHROMIUMImmediate( |
4894 uint32_t immediate_data_size, | 4904 uint32_t immediate_data_size, |
4895 const void* cmd_data) { | 4905 const void* cmd_data) { |
4896 const gles2::cmds::MatrixLoadfCHROMIUMImmediate& c = | 4906 const gles2::cmds::MatrixLoadfCHROMIUMImmediate& c = |
4897 *static_cast<const gles2::cmds::MatrixLoadfCHROMIUMImmediate*>(cmd_data); | 4907 *static_cast<const gles2::cmds::MatrixLoadfCHROMIUMImmediate*>(cmd_data); |
4898 (void)c; | 4908 (void)c; |
4899 if (!features().chromium_path_rendering) { | 4909 if (!features().chromium_path_rendering) { |
4900 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glMatrixLoadfCHROMIUM", | 4910 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glMatrixLoadfCHROMIUM", |
4901 "function not available"); | 4911 "function not available"); |
4902 return error::kNoError; | 4912 return error::kNoError; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5101 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; | 5111 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; |
5102 return true; | 5112 return true; |
5103 } | 5113 } |
5104 return false; | 5114 return false; |
5105 default: | 5115 default: |
5106 NOTREACHED(); | 5116 NOTREACHED(); |
5107 return false; | 5117 return false; |
5108 } | 5118 } |
5109 } | 5119 } |
5110 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5120 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |