| 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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 if (!result) { | 1924 if (!result) { |
| 1925 return error::kOutOfBounds; | 1925 return error::kOutOfBounds; |
| 1926 } | 1926 } |
| 1927 error::Error error = DoIsTransformFeedback(transformfeedback, result); | 1927 error::Error error = DoIsTransformFeedback(transformfeedback, result); |
| 1928 if (error != error::kNoError) { | 1928 if (error != error::kNoError) { |
| 1929 return error; | 1929 return error; |
| 1930 } | 1930 } |
| 1931 return error::kNoError; | 1931 return error::kNoError; |
| 1932 } | 1932 } |
| 1933 | 1933 |
| 1934 error::Error GLES2DecoderPassthroughImpl::HandleLineWidth( | |
| 1935 uint32_t immediate_data_size, | |
| 1936 const volatile void* cmd_data) { | |
| 1937 const volatile gles2::cmds::LineWidth& c = | |
| 1938 *static_cast<const volatile gles2::cmds::LineWidth*>(cmd_data); | |
| 1939 GLfloat width = static_cast<GLfloat>(c.width); | |
| 1940 error::Error error = DoLineWidth(width); | |
| 1941 if (error != error::kNoError) { | |
| 1942 return error; | |
| 1943 } | |
| 1944 return error::kNoError; | |
| 1945 } | |
| 1946 | |
| 1947 error::Error GLES2DecoderPassthroughImpl::HandleLinkProgram( | 1934 error::Error GLES2DecoderPassthroughImpl::HandleLinkProgram( |
| 1948 uint32_t immediate_data_size, | 1935 uint32_t immediate_data_size, |
| 1949 const volatile void* cmd_data) { | 1936 const volatile void* cmd_data) { |
| 1950 const volatile gles2::cmds::LinkProgram& c = | 1937 const volatile gles2::cmds::LinkProgram& c = |
| 1951 *static_cast<const volatile gles2::cmds::LinkProgram*>(cmd_data); | 1938 *static_cast<const volatile gles2::cmds::LinkProgram*>(cmd_data); |
| 1952 GLuint program = c.program; | 1939 GLuint program = c.program; |
| 1953 error::Error error = DoLinkProgram(program); | 1940 error::Error error = DoLinkProgram(program); |
| 1954 if (error != error::kNoError) { | 1941 if (error != error::kNoError) { |
| 1955 return error; | 1942 return error; |
| 1956 } | 1943 } |
| (...skipping 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4125 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 4112 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
| 4126 location, transpose, transform); | 4113 location, transpose, transform); |
| 4127 if (error != error::kNoError) { | 4114 if (error != error::kNoError) { |
| 4128 return error; | 4115 return error; |
| 4129 } | 4116 } |
| 4130 return error::kNoError; | 4117 return error::kNoError; |
| 4131 } | 4118 } |
| 4132 | 4119 |
| 4133 } // namespace gles2 | 4120 } // namespace gles2 |
| 4134 } // namespace gpu | 4121 } // namespace gpu |
| OLD | NEW |