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

Unified Diff: third_party/WebKit/Source/modules/vr/VRStageParameters.cpp

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test Created 4 years, 7 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: 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
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRStageParameters.h ('k') | third_party/WebKit/Source/modules/vr/VRStageParameters.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698