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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 9309047: Swizzle Uniform Locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unsigned math Created 8 years, 10 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
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index e45d18315cf0ff73d27a3af71f69328f0469a736..39cccbfc67a878bc6b14b962eb49bf29d036b1b5 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -6091,7 +6091,8 @@ error::Error GLES2DecoderImpl::GetUniformLocationHelper(
if (*location != -1) {
return error::kGenericError;
}
- *location = info->GetUniformLocation(name_str);
+ *location = program_manager()->SwizzleLocation(
+ info->GetUniformLocation(name_str));
return error::kNoError;
}
@@ -7129,7 +7130,7 @@ bool GLES2DecoderImpl::GetUniformSetup(
error::Error GLES2DecoderImpl::HandleGetUniformiv(
uint32 immediate_data_size, const gles2::GetUniformiv& c) {
GLuint program = c.program;
- GLint location = c.location;
+ GLint location = program_manager()->UnswizzleLocation(c.location);
GLuint service_id;
GLenum result_type;
Error error;
@@ -7147,7 +7148,7 @@ error::Error GLES2DecoderImpl::HandleGetUniformiv(
error::Error GLES2DecoderImpl::HandleGetUniformfv(
uint32 immediate_data_size, const gles2::GetUniformfv& c) {
GLuint program = c.program;
- GLint location = c.location;
+ GLint location = program_manager()->UnswizzleLocation(c.location);
GLuint service_id;
Error error;
typedef gles2::GetUniformfv::Result Result;
@@ -7651,7 +7652,7 @@ error::Error GLES2DecoderImpl::HandleGetProgramInfoCHROMIUM(
if (!info || !info->IsValid()) {
return error::kNoError;
}
- info->GetProgramInfo(bucket);
+ info->GetProgramInfo(program_manager(), bucket);
return error::kNoError;
}
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698