| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/client/gl_math.h" | 5 #include "remoting/client/display/gl_math.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| 11 void TransposeTransformationMatrix(std::array<float, 9>* matrix) { | 11 void TransposeTransformationMatrix(std::array<float, 9>* matrix) { |
| 12 // | ??, m1, m2, | | ??, m3, m6 | | 12 // | ??, m1, m2, | | ??, m3, m6 | |
| 13 // | m3, ??, m5, | -> | m1, ??, m7 | | 13 // | m3, ??, m5, | -> | m1, ??, m7 | |
| 14 // | m6, m7, ?? | | m2, m5, ?? | | 14 // | m6, m7, ?? | | m2, m5, ?? | |
| 15 std::swap((*matrix)[1], (*matrix)[3]); | 15 std::swap((*matrix)[1], (*matrix)[3]); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 for (int j = 0; j < num_cols; j++) { | 42 for (int j = 0; j < num_cols; j++) { |
| 43 outstream << mat[i * num_cols + j] << ", "; | 43 outstream << mat[i * num_cols + j] << ", "; |
| 44 } | 44 } |
| 45 outstream << "\n"; | 45 outstream << "\n"; |
| 46 } | 46 } |
| 47 outstream << "]"; | 47 outstream << "]"; |
| 48 return outstream.str(); | 48 return outstream.str(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace remoting | 51 } // namespace remoting |
| OLD | NEW |