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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index 3f3fe78311572f138b70648014065d7707f03f07..c69ce4126c1db1b3eb16b029e64e48baca256298 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -15721,20 +15721,18 @@ struct UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate {
void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); }
- void Init(GLint _location,
- GLboolean _transpose,
- const GLfloat* _default_value) {
+ void Init(GLint _location, GLboolean _transpose, const GLfloat* _transform) {
SetHeader();
location = _location;
transpose = _transpose;
- memcpy(ImmediateDataAddress(this), _default_value, ComputeDataSize());
+ memcpy(ImmediateDataAddress(this), _transform, ComputeDataSize());
}
void* Set(void* cmd,
GLint _location,
GLboolean _transpose,
- const GLfloat* _default_value) {
- static_cast<ValueType*>(cmd)->Init(_location, _transpose, _default_value);
+ const GLfloat* _transform) {
+ static_cast<ValueType*>(cmd)->Init(_location, _transpose, _transform);
const uint32_t size = ComputeSize();
return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
}

Powered by Google App Engine
This is Rietveld 408576698