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

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

Issue 2736593002: Update API to latest spec : Remove VRFrameData#timestamp (Closed)
Patch Set: modify mock-vr-service.js Created 3 years, 9 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/VRFrameData.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRFrameData.cpp b/third_party/WebKit/Source/modules/vr/VRFrameData.cpp
index 83627caada6e99e00acb801a79df81d571965576..ffce7da86733f09e017229a444157e3925727def 100644
--- a/third_party/WebKit/Source/modules/vr/VRFrameData.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRFrameData.cpp
@@ -167,7 +167,7 @@ bool matrixInvert(DOMFloat32Array* outArray) {
return true;
};
-VRFrameData::VRFrameData() : m_timestamp(0.0) {
+VRFrameData::VRFrameData() {
m_leftProjectionMatrix = DOMFloat32Array::create(16);
m_leftViewMatrix = DOMFloat32Array::create(16);
m_rightProjectionMatrix = DOMFloat32Array::create(16);
@@ -180,8 +180,6 @@ bool VRFrameData::update(const device::mojom::blink::VRPosePtr& pose,
VREyeParameters* rightEye,
float depthNear,
float depthFar) {
- m_timestamp = pose->timestamp;
-
// Build the projection matrices
projectionFromFieldOfView(m_leftProjectionMatrix, leftEye->fieldOfView(),
depthNear, depthFar);
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRFrameData.h ('k') | third_party/WebKit/Source/modules/vr/VRFrameData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698