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

Side by Side Diff: remoting/client/display/gl_math.cc

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Updating the include define for the new path. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698