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

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

Issue 2150993002: Revert of Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 4455 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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