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

Unified Diff: remoting/client/gl_canvas.cc

Issue 2175963002: [Chromoting] Implement GlRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements full transpose 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/client/gl_math.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/gl_canvas.cc
diff --git a/remoting/client/gl_canvas.cc b/remoting/client/gl_canvas.cc
index 03ae0ea0e1d37832a2e67f35cda44565ccdbc3c9..939d4b265c262f075b622035721746c6ffc31a84 100644
--- a/remoting/client/gl_canvas.cc
+++ b/remoting/client/gl_canvas.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "remoting/client/gl_helpers.h"
+#include "remoting/client/gl_math.h"
namespace {
@@ -84,7 +85,10 @@ GlCanvas::~GlCanvas() {
void GlCanvas::SetNormalizedTransformation(const std::array<float, 9>& matrix) {
DCHECK(thread_checker_.CalledOnValidThread());
- glUniformMatrix3fv(transform_location_, 1, GL_TRUE, matrix.data());
+ std::array<float, 9> transposed_matrix = matrix;
+ TransposeTransformationMatrix(&transposed_matrix);
+ glUniformMatrix3fv(transform_location_, 1, GL_FALSE,
+ transposed_matrix.data());
transformation_set_ = true;
}
« no previous file with comments | « no previous file | remoting/client/gl_math.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698