| 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 3814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3825 return error; | 3825 return error; |
| 3826 } | 3826 } |
| 3827 return error::kNoError; | 3827 return error::kNoError; |
| 3828 } | 3828 } |
| 3829 | 3829 |
| 3830 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM( | 3830 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM( |
| 3831 uint32_t immediate_data_size, | 3831 uint32_t immediate_data_size, |
| 3832 const volatile void* cmd_data) { | 3832 const volatile void* cmd_data) { |
| 3833 const volatile gles2::cmds::CopyTextureCHROMIUM& c = | 3833 const volatile gles2::cmds::CopyTextureCHROMIUM& c = |
| 3834 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); | 3834 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); |
| 3835 GLuint source_id = static_cast<GLuint>(c.source_id); | 3835 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 3836 GLint source_level = static_cast<GLint>(c.source_level); | 3836 GLint source_level = static_cast<GLint>(c.source_level); |
| 3837 GLenum dest_target = static_cast<GLenum>(c.dest_target); | 3837 GLenum dest_target = static_cast<GLenum>(c.dest_target); |
| 3838 GLuint dest_id = static_cast<GLuint>(c.dest_id); | 3838 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 3839 GLint dest_level = static_cast<GLint>(c.dest_level); | 3839 GLint dest_level = static_cast<GLint>(c.dest_level); |
| 3840 GLint internalformat = static_cast<GLint>(c.internalformat); | 3840 GLint internalformat = static_cast<GLint>(c.internalformat); |
| 3841 GLenum dest_type = static_cast<GLenum>(c.dest_type); | 3841 GLenum dest_type = static_cast<GLenum>(c.dest_type); |
| 3842 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 3842 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 3843 GLboolean unpack_premultiply_alpha = | 3843 GLboolean unpack_premultiply_alpha = |
| 3844 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 3844 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 3845 GLboolean unpack_unmultiply_alpha = | 3845 GLboolean unpack_unmultiply_alpha = |
| 3846 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 3846 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 3847 error::Error error = DoCopyTextureCHROMIUM( | 3847 error::Error error = DoCopyTextureCHROMIUM( |
| 3848 source_id, source_level, dest_target, dest_id, dest_level, internalformat, | 3848 source_id, source_level, dest_target, dest_id, dest_level, internalformat, |
| 3849 dest_type, unpack_flip_y, unpack_premultiply_alpha, | 3849 dest_type, unpack_flip_y, unpack_premultiply_alpha, |
| 3850 unpack_unmultiply_alpha); | 3850 unpack_unmultiply_alpha); |
| 3851 if (error != error::kNoError) { | 3851 if (error != error::kNoError) { |
| 3852 return error; | 3852 return error; |
| 3853 } | 3853 } |
| 3854 return error::kNoError; | 3854 return error::kNoError; |
| 3855 } | 3855 } |
| 3856 | 3856 |
| 3857 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM( | 3857 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM( |
| 3858 uint32_t immediate_data_size, | 3858 uint32_t immediate_data_size, |
| 3859 const volatile void* cmd_data) { | 3859 const volatile void* cmd_data) { |
| 3860 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = | 3860 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = |
| 3861 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( | 3861 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( |
| 3862 cmd_data); | 3862 cmd_data); |
| 3863 GLuint source_id = static_cast<GLuint>(c.source_id); | 3863 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 3864 GLint source_level = static_cast<GLint>(c.source_level); | 3864 GLint source_level = static_cast<GLint>(c.source_level); |
| 3865 GLenum dest_target = static_cast<GLenum>(c.dest_target); | 3865 GLenum dest_target = static_cast<GLenum>(c.dest_target); |
| 3866 GLuint dest_id = static_cast<GLuint>(c.dest_id); | 3866 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 3867 GLint dest_level = static_cast<GLint>(c.dest_level); | 3867 GLint dest_level = static_cast<GLint>(c.dest_level); |
| 3868 GLint xoffset = static_cast<GLint>(c.xoffset); | 3868 GLint xoffset = static_cast<GLint>(c.xoffset); |
| 3869 GLint yoffset = static_cast<GLint>(c.yoffset); | 3869 GLint yoffset = static_cast<GLint>(c.yoffset); |
| 3870 GLint x = static_cast<GLint>(c.x); | 3870 GLint x = static_cast<GLint>(c.x); |
| 3871 GLint y = static_cast<GLint>(c.y); | 3871 GLint y = static_cast<GLint>(c.y); |
| 3872 GLsizei width = static_cast<GLsizei>(c.width); | 3872 GLsizei width = static_cast<GLsizei>(c.width); |
| 3873 GLsizei height = static_cast<GLsizei>(c.height); | 3873 GLsizei height = static_cast<GLsizei>(c.height); |
| 3874 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); | 3874 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); |
| 3875 GLboolean unpack_premultiply_alpha = | 3875 GLboolean unpack_premultiply_alpha = |
| 3876 static_cast<GLboolean>(c.unpack_premultiply_alpha); | 3876 static_cast<GLboolean>(c.unpack_premultiply_alpha); |
| 3877 GLboolean unpack_unmultiply_alpha = | 3877 GLboolean unpack_unmultiply_alpha = |
| 3878 static_cast<GLboolean>(c.unpack_unmultiply_alpha); | 3878 static_cast<GLboolean>(c.unpack_unmultiply_alpha); |
| 3879 error::Error error = DoCopySubTextureCHROMIUM( | 3879 error::Error error = DoCopySubTextureCHROMIUM( |
| 3880 source_id, source_level, dest_target, dest_id, dest_level, xoffset, | 3880 source_id, source_level, dest_target, dest_id, dest_level, xoffset, |
| 3881 yoffset, x, y, width, height, unpack_flip_y, unpack_premultiply_alpha, | 3881 yoffset, x, y, width, height, unpack_flip_y, unpack_premultiply_alpha, |
| 3882 unpack_unmultiply_alpha); | 3882 unpack_unmultiply_alpha); |
| 3883 if (error != error::kNoError) { | 3883 if (error != error::kNoError) { |
| 3884 return error; | 3884 return error; |
| 3885 } | 3885 } |
| 3886 return error::kNoError; | 3886 return error::kNoError; |
| 3887 } | 3887 } |
| 3888 | 3888 |
| 3889 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM( | 3889 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM( |
| 3890 uint32_t immediate_data_size, | 3890 uint32_t immediate_data_size, |
| 3891 const volatile void* cmd_data) { | 3891 const volatile void* cmd_data) { |
| 3892 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = | 3892 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = |
| 3893 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( | 3893 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( |
| 3894 cmd_data); | 3894 cmd_data); |
| 3895 GLuint source_id = static_cast<GLuint>(c.source_id); | 3895 GLenum source_id = static_cast<GLenum>(c.source_id); |
| 3896 GLuint dest_id = static_cast<GLuint>(c.dest_id); | 3896 GLenum dest_id = static_cast<GLenum>(c.dest_id); |
| 3897 error::Error error = DoCompressedCopyTextureCHROMIUM(source_id, dest_id); | 3897 error::Error error = DoCompressedCopyTextureCHROMIUM(source_id, dest_id); |
| 3898 if (error != error::kNoError) { | 3898 if (error != error::kNoError) { |
| 3899 return error; | 3899 return error; |
| 3900 } | 3900 } |
| 3901 return error::kNoError; | 3901 return error::kNoError; |
| 3902 } | 3902 } |
| 3903 | 3903 |
| 3904 error::Error GLES2DecoderPassthroughImpl::HandleProduceTextureCHROMIUMImmediate( | 3904 error::Error GLES2DecoderPassthroughImpl::HandleProduceTextureCHROMIUMImmediate( |
| 3905 uint32_t immediate_data_size, | 3905 uint32_t immediate_data_size, |
| 3906 const volatile void* cmd_data) { | 3906 const volatile void* cmd_data) { |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4394 GLboolean enabled = static_cast<GLboolean>(c.enabled); | 4394 GLboolean enabled = static_cast<GLboolean>(c.enabled); |
| 4395 error::Error error = DoSetEnableDCLayersCHROMIUM(enabled); | 4395 error::Error error = DoSetEnableDCLayersCHROMIUM(enabled); |
| 4396 if (error != error::kNoError) { | 4396 if (error != error::kNoError) { |
| 4397 return error; | 4397 return error; |
| 4398 } | 4398 } |
| 4399 return error::kNoError; | 4399 return error::kNoError; |
| 4400 } | 4400 } |
| 4401 | 4401 |
| 4402 } // namespace gles2 | 4402 } // namespace gles2 |
| 4403 } // namespace gpu | 4403 } // namespace gpu |
| OLD | NEW |