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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getCustomMatrix Created 4 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
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 << ")");

Powered by Google App Engine
This is Rietveld 408576698