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

Side by Side Diff: webkit/compositor_bindings/web_transformation_matrix_util.cc

Issue 12629006: Prepare for removing WebTransformationMatrix from animation APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698