summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings/web_transformation_matrix_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/compositor_bindings/web_transformation_matrix_util.h')
-rw-r--r--webkit/compositor_bindings/web_transformation_matrix_util.h24
1 files changed, 24 insertions, 0 deletions
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 0000000..e65afe2
--- /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_