Index: third_party/WebKit/Source/modules/vr/VRStageParameters.cpp |
diff --git a/third_party/WebKit/Source/modules/vr/VRStageParameters.cpp b/third_party/WebKit/Source/modules/vr/VRStageParameters.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..09ea2fd7a2dea1aebe2e8a119b862e557b7dc39e |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/vr/VRStageParameters.cpp |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 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. |
+ |
+#include "modules/vr/VRStageParameters.h" |
+ |
+namespace blink { |
+ |
+VRStageParameters::VRStageParameters() |
+ : m_sizeX(0.0f) |
+ , m_sizeZ(0.0f) |
+{ |
+ // Set the sitting to standing transform to identity matrix |
+ m_standingTransform = DOMFloat32Array::create(16); |
+ m_standingTransform->data()[0] = 1.0f; |
+ m_standingTransform->data()[5] = 1.0f; |
+ m_standingTransform->data()[10] = 1.0f; |
+ m_standingTransform->data()[15] = 1.0f; |
+} |
+ |
+DEFINE_TRACE(VRStageParameters) |
+{ |
+ visitor->trace(m_standingTransform); |
+} |
+ |
+} // namespace blink |