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

Unified Diff: content/browser/vr/vr_transform_util.h

Issue 1200303002: Android WebVR implementation, Cardboard 0.5.5 SDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback from jochen@ Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/vr/vr_transform_util.h
diff --git a/content/browser/vr/vr_transform_util.h b/content/browser/vr/vr_transform_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..1efa272ba439cb6a30b016b9a9d499b67ea72397
--- /dev/null
+++ b/content/browser/vr/vr_transform_util.h
@@ -0,0 +1,21 @@
+// Copyright 2015 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 CONTENT_BROWSER_VR_VR_TRANSFORM_UTILS_H
+#define CONTENT_BROWSER_VR_VR_TRANSFORM_UTILS_H
+
+#include "content/common/vr_service.mojom.h"
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+namespace content {
+
+VRVector4Ptr MatrixToOrientationQuaternion(
+ const float m0[3], const float m1[3], const float m2[3]);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_VR_VR_TRANSFORM_UTILS_H

Powered by Google App Engine
This is Rietveld 408576698