| Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| index 4ed05610db5fdebdea7d706e1a2dcfc8bbf2b0dc..04b5b9eae934b8b8300437f4077abbd6beafec4a 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
| @@ -2633,6 +2633,46 @@ void GLES2Implementation::UniformMatrix4x3fv(GLint location,
|
| CheckGLError();
|
| }
|
|
|
| +void GLES2Implementation::UniformMatrix4fvWithCustomMatrixCHROMIUM(
|
| + GLint location,
|
| + GLsizei count,
|
| + GLint custom_matrix_id,
|
| + GLboolean transpose,
|
| + const GLfloat* default_value) {
|
| + GPU_CLIENT_SINGLE_THREAD_CHECK();
|
| + GPU_CLIENT_LOG("[" << GetLogPrefix()
|
| + << "] glUniformMatrix4fvWithCustomMatrixCHROMIUM("
|
| + << location << ", " << count << ", " << custom_matrix_id
|
| + << ", " << GLES2Util::GetStringBool(transpose) << ", "
|
| + << static_cast<const void*>(default_value) << ")");
|
| + GPU_CLIENT_LOG_CODE_BLOCK({
|
| + for (GLsizei i = 0; i < count; ++i) {
|
| + GPU_CLIENT_LOG(
|
| + " " << i << ": " << default_value[0 + i * 16] << ", "
|
| + << default_value[1 + i * 16] << ", " << default_value[2 + i * 16]
|
| + << ", " << default_value[3 + i * 16] << ", "
|
| + << default_value[4 + i * 16] << ", " << default_value[5 + i * 16]
|
| + << ", " << default_value[6 + i * 16] << ", "
|
| + << default_value[7 + i * 16] << ", " << default_value[8 + i * 16]
|
| + << ", " << default_value[9 + i * 16] << ", "
|
| + << default_value[10 + i * 16] << ", "
|
| + << default_value[11 + i * 16] << ", "
|
| + << default_value[12 + i * 16] << ", "
|
| + << default_value[13 + i * 16] << ", "
|
| + << default_value[14 + i * 16] << ", "
|
| + << default_value[15 + i * 16]);
|
| + }
|
| + });
|
| + if (count < 0) {
|
| + SetGLError(GL_INVALID_VALUE, "glUniformMatrix4fvWithCustomMatrixCHROMIUM",
|
| + "count < 0");
|
| + return;
|
| + }
|
| + helper_->UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate(
|
| + location, count, custom_matrix_id, transpose, default_value);
|
| + CheckGLError();
|
| +}
|
| +
|
| void GLES2Implementation::UseProgram(GLuint program) {
|
| GPU_CLIENT_SINGLE_THREAD_CHECK();
|
| GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUseProgram(" << program << ")");
|
|
|