Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase [If you wait by the river long enough, the bodies of your gyp files will float by] Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/ipc/service/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698