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 4891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4902 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0"); | 4902 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0"); |
4903 return error::kNoError; | 4903 return error::kNoError; |
4904 } | 4904 } |
4905 if (bufs == NULL) { | 4905 if (bufs == NULL) { |
4906 return error::kOutOfBounds; | 4906 return error::kOutOfBounds; |
4907 } | 4907 } |
4908 DoDrawBuffersEXT(count, bufs); | 4908 DoDrawBuffersEXT(count, bufs); |
4909 return error::kNoError; | 4909 return error::kNoError; |
4910 } | 4910 } |
4911 | 4911 |
| 4912 error::Error GLES2DecoderImpl::HandleCommitOverlayPlanesCHROMIUM( |
| 4913 uint32_t immediate_data_size, |
| 4914 const void* cmd_data) { |
| 4915 const gles2::cmds::CommitOverlayPlanesCHROMIUM& c = |
| 4916 *static_cast<const gles2::cmds::CommitOverlayPlanesCHROMIUM*>(cmd_data); |
| 4917 (void)c; |
| 4918 DoCommitOverlayPlanes(); |
| 4919 return error::kNoError; |
| 4920 } |
| 4921 |
4912 error::Error GLES2DecoderImpl::HandleSwapInterval(uint32_t immediate_data_size, | 4922 error::Error GLES2DecoderImpl::HandleSwapInterval(uint32_t immediate_data_size, |
4913 const void* cmd_data) { | 4923 const void* cmd_data) { |
4914 const gles2::cmds::SwapInterval& c = | 4924 const gles2::cmds::SwapInterval& c = |
4915 *static_cast<const gles2::cmds::SwapInterval*>(cmd_data); | 4925 *static_cast<const gles2::cmds::SwapInterval*>(cmd_data); |
4916 (void)c; | 4926 (void)c; |
4917 GLint interval = static_cast<GLint>(c.interval); | 4927 GLint interval = static_cast<GLint>(c.interval); |
4918 DoSwapInterval(interval); | 4928 DoSwapInterval(interval); |
4919 return error::kNoError; | 4929 return error::kNoError; |
4920 } | 4930 } |
4921 | 4931 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5145 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; | 5155 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; |
5146 return true; | 5156 return true; |
5147 } | 5157 } |
5148 return false; | 5158 return false; |
5149 default: | 5159 default: |
5150 NOTREACHED(); | 5160 NOTREACHED(); |
5151 return false; | 5161 return false; |
5152 } | 5162 } |
5153 } | 5163 } |
5154 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5164 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |