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 4455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4466 (void)c; | 4466 (void)c; |
4467 GLint location = static_cast<GLint>(c.location); | 4467 GLint location = static_cast<GLint>(c.location); |
4468 GLboolean transpose = static_cast<GLboolean>(c.transpose); | 4468 GLboolean transpose = static_cast<GLboolean>(c.transpose); |
4469 uint32_t data_size; | 4469 uint32_t data_size; |
4470 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { | 4470 if (!GLES2Util::ComputeDataSize(1, sizeof(GLfloat), 16, &data_size)) { |
4471 return error::kOutOfBounds; | 4471 return error::kOutOfBounds; |
4472 } | 4472 } |
4473 if (data_size > immediate_data_size) { | 4473 if (data_size > immediate_data_size) { |
4474 return error::kOutOfBounds; | 4474 return error::kOutOfBounds; |
4475 } | 4475 } |
4476 const GLfloat* transform = | 4476 const GLfloat* default_value = |
4477 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); | 4477 GetImmediateDataAs<const GLfloat*>(c, data_size, immediate_data_size); |
4478 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 4478 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
4479 location, transpose, transform); | 4479 location, transpose, default_value); |
4480 if (error != error::kNoError) { | 4480 if (error != error::kNoError) { |
4481 return error; | 4481 return error; |
4482 } | 4482 } |
4483 return error::kNoError; | 4483 return error::kNoError; |
4484 } | 4484 } |
4485 | 4485 |
4486 } // namespace gles2 | 4486 } // namespace gles2 |
4487 } // namespace gpu | 4487 } // namespace gpu |
OLD | NEW |