| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef REMOTING_CLIENT_VIEW_MATRIX_H_ | 5 #ifndef REMOTING_CLIENT_UI_VIEW_MATRIX_H_ |
| 6 #define REMOTING_CLIENT_VIEW_MATRIX_H_ | 6 #define REMOTING_CLIENT_UI_VIEW_MATRIX_H_ |
| 7 | 7 |
| 8 #include <array> | 8 #include <array> |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 // A 2D non-skew equally scaled transformation matrix. | 12 // A 2D non-skew equally scaled transformation matrix. |
| 13 // | SCALE, 0, OFFSET_X, | | 13 // | SCALE, 0, OFFSET_X, | |
| 14 // | 0, SCALE, OFFSET_Y, | | 14 // | 0, SCALE, OFFSET_Y, | |
| 15 // | 0, 0, 1 | | 15 // | 0, 0, 1 | |
| 16 class ViewMatrix { | 16 class ViewMatrix { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Converts to the 3x3 matrix array. | 64 // Converts to the 3x3 matrix array. |
| 65 std::array<float, 9> ToMatrixArray() const; | 65 std::array<float, 9> ToMatrixArray() const; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 float scale_; | 68 float scale_; |
| 69 Vector2D offset_; | 69 Vector2D offset_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace remoting | 72 } // namespace remoting |
| 73 | 73 |
| 74 #endif // REMOTING_CLIENT_VIEW_MATRIX_H_ | 74 #endif // REMOTING_CLIENT_UI_VIEW_MATRIX_H_ |
| OLD | NEW |