Index: webkit/compositor_bindings/web_transformation_matrix_util.h |
diff --git a/webkit/compositor_bindings/web_transformation_matrix_util.h b/webkit/compositor_bindings/web_transformation_matrix_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e65afe2851d7db3d4383a95eb5e26ea9a6a86541 |
--- /dev/null |
+++ b/webkit/compositor_bindings/web_transformation_matrix_util.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |
+#define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |
+ |
+#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMatrix.h" |
+#include "ui/gfx/transform.h" |
+ |
+namespace webkit { |
+ |
+class WebTransformationMatrixUtil { |
+ public: |
+ static gfx::Transform ToTransform( |
+ const WebKit::WebTransformationMatrix& matrix); |
+ |
+ static WebKit::WebTransformationMatrix ToWebTransformationMatrix( |
+ const gfx::Transform& transform); |
+}; |
+ |
+} // namespace webkit |
+ |
+#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORMATION_MATRIX_UTIL_H_ |