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 4484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4495 (void)c; | 4495 (void)c; |
4496 GLint location = static_cast<GLint>(c.location); | 4496 GLint location = static_cast<GLint>(c.location); |
4497 GLboolean transpose = static_cast<GLboolean>(c.transpose); | 4497 GLboolean transpose = static_cast<GLboolean>(c.transpose); |
4498 uint32_t data_size; | 4498 uint32_t data_size; |
4499 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { | 4499 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { |
4500 return error::kOutOfBounds; | 4500 return error::kOutOfBounds; |
4501 } | 4501 } |
4502 if (data_size > immediate_data_size) { | 4502 if (data_size > immediate_data_size) { |
4503 return error::kOutOfBounds; | 4503 return error::kOutOfBounds; |
4504 } | 4504 } |
4505 const GLfloat* default_value = | 4505 const GLfloat* transform = |
4506 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); | 4506 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); |
4507 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 4507 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
4508 location, transpose, default_value); | 4508 location, transpose, transform); |
4509 if (error != error::kNoError) { | 4509 if (error != error::kNoError) { |
4510 return error; | 4510 return error; |
4511 } | 4511 } |
4512 return error::kNoError; | 4512 return error::kNoError; |
4513 } | 4513 } |
4514 | 4514 |
4515 } // namespace gles2 | 4515 } // namespace gles2 |
4516 } // namespace gpu | 4516 } // namespace gpu |
OLD | NEW |