| 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 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2895 return error::kUnknownCommand; | 2895 return error::kUnknownCommand; |
| 2896 const gles2::cmds::TexStorage3D& c = | 2896 const gles2::cmds::TexStorage3D& c = |
| 2897 *static_cast<const gles2::cmds::TexStorage3D*>(cmd_data); | 2897 *static_cast<const gles2::cmds::TexStorage3D*>(cmd_data); |
| 2898 (void)c; | 2898 (void)c; |
| 2899 GLenum target = static_cast<GLenum>(c.target); | 2899 GLenum target = static_cast<GLenum>(c.target); |
| 2900 GLsizei levels = static_cast<GLsizei>(c.levels); | 2900 GLsizei levels = static_cast<GLsizei>(c.levels); |
| 2901 GLenum internalFormat = static_cast<GLenum>(c.internalFormat); | 2901 GLenum internalFormat = static_cast<GLenum>(c.internalFormat); |
| 2902 GLsizei width = static_cast<GLsizei>(c.width); | 2902 GLsizei width = static_cast<GLsizei>(c.width); |
| 2903 GLsizei height = static_cast<GLsizei>(c.height); | 2903 GLsizei height = static_cast<GLsizei>(c.height); |
| 2904 GLsizei depth = static_cast<GLsizei>(c.depth); | 2904 GLsizei depth = static_cast<GLsizei>(c.depth); |
| 2905 glTexStorage3D(target, levels, internalFormat, width, height, depth); | 2905 DoTexStorage3D(target, levels, internalFormat, width, height, depth); |
| 2906 return error::kNoError; | 2906 return error::kNoError; |
| 2907 } | 2907 } |
| 2908 | 2908 |
| 2909 error::Error GLES2DecoderImpl::HandleTransformFeedbackVaryingsBucket( | 2909 error::Error GLES2DecoderImpl::HandleTransformFeedbackVaryingsBucket( |
| 2910 uint32_t immediate_data_size, | 2910 uint32_t immediate_data_size, |
| 2911 const void* cmd_data) { | 2911 const void* cmd_data) { |
| 2912 if (!unsafe_es3_apis_enabled()) | 2912 if (!unsafe_es3_apis_enabled()) |
| 2913 return error::kUnknownCommand; | 2913 return error::kUnknownCommand; |
| 2914 const gles2::cmds::TransformFeedbackVaryingsBucket& c = | 2914 const gles2::cmds::TransformFeedbackVaryingsBucket& c = |
| 2915 *static_cast<const gles2::cmds::TransformFeedbackVaryingsBucket*>( | 2915 *static_cast<const gles2::cmds::TransformFeedbackVaryingsBucket*>( |
| (...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5116 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; | 5116 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; |
| 5117 return true; | 5117 return true; |
| 5118 } | 5118 } |
| 5119 return false; | 5119 return false; |
| 5120 default: | 5120 default: |
| 5121 NOTREACHED(); | 5121 NOTREACHED(); |
| 5122 return false; | 5122 return false; |
| 5123 } | 5123 } |
| 5124 } | 5124 } |
| 5125 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 5125 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
| OLD | NEW |