| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "webkit/compositor_bindings/web_transformation_matrix_util.h" | 5 #include "webkit/compositor_bindings/web_transformation_matrix_util.h" |
| 6 | 6 |
| 7 using WebKit::WebTransformationMatrix; | 7 using WebKit::WebTransformationMatrix; |
| 8 | 8 |
| 9 namespace webkit { | 9 namespace webkit { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 matrix.m13(), | 21 matrix.m13(), |
| 22 matrix.m23(), | 22 matrix.m23(), |
| 23 matrix.m33(), | 23 matrix.m33(), |
| 24 matrix.m43(), | 24 matrix.m43(), |
| 25 matrix.m14(), | 25 matrix.m14(), |
| 26 matrix.m24(), | 26 matrix.m24(), |
| 27 matrix.m34(), | 27 matrix.m34(), |
| 28 matrix.m44()); | 28 matrix.m44()); |
| 29 } | 29 } |
| 30 | 30 |
| 31 WebTransformationMatrix WebTransformationMatrixUtil::ToWebTransformationMatrix( | |
| 32 const gfx::Transform& transform) { | |
| 33 return WebTransformationMatrix(transform.matrix().getDouble(0, 0), | |
| 34 transform.matrix().getDouble(1, 0), | |
| 35 transform.matrix().getDouble(2, 0), | |
| 36 transform.matrix().getDouble(3, 0), | |
| 37 transform.matrix().getDouble(0, 1), | |
| 38 transform.matrix().getDouble(1, 1), | |
| 39 transform.matrix().getDouble(2, 1), | |
| 40 transform.matrix().getDouble(3, 1), | |
| 41 transform.matrix().getDouble(0, 2), | |
| 42 transform.matrix().getDouble(1, 2), | |
| 43 transform.matrix().getDouble(2, 2), | |
| 44 transform.matrix().getDouble(3, 2), | |
| 45 transform.matrix().getDouble(0, 3), | |
| 46 transform.matrix().getDouble(1, 3), | |
| 47 transform.matrix().getDouble(2, 3), | |
| 48 transform.matrix().getDouble(3, 3)); | |
| 49 | |
| 50 } | |
| 51 | |
| 52 } // namespace webkit | 31 } // namespace webkit |
| OLD | NEW |