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 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ | 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ | 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |
7 | 7 |
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" |
9 #include "ui/gfx/transform.h" | 9 #include "ui/gfx/transform.h" |
10 | 10 |
11 namespace webkit { | 11 namespace webkit { |
12 | 12 |
13 class WebTransformationMatrixUtil { | 13 class WebTransformationMatrixUtil { |
14 public: | 14 public: |
15 static gfx::Transform ToTransform( | 15 static gfx::Transform ToTransform( |
16 const WebKit::WebTransformationMatrix& matrix); | 16 const WebKit::WebTransformationMatrix& matrix); |
17 | |
18 static WebKit::WebTransformationMatrix ToWebTransformationMatrix( | |
19 const gfx::Transform& transform); | |
20 }; | 17 }; |
21 | 18 |
22 } // namespace webkit | 19 } // namespace webkit |
23 | 20 |
24 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ | 21 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |
OLD | NEW |