Added VRFrameOfReference creation

Desktop / Chromium - Brandon Jones [chromium.org] - 10 October 2017 18:16 EDT

This CL enables to creation of VRFrameOfReference instances by calling session.requestFrameOfReference. It includes all the logic necessary to handle the frame of reference transforms, even though there is no need for them in the code just yet. Also includes the VRStageBounds and VRStageBoundsPoint interfaces as they are part of the VRFrameOfReference interface, but at this time there is no way to create a VRFrameOfReference that will have non-null bounds. (That will effectively have to wait till we have desktop support.)

Bug: 670510 Change-Id: I68135f487b876f32a2843b29731063184150f776 Reviewed-on: https://chromium-review.googlesource.com/693051 Commit-Queue: Brandon Jones

510a35a Added VRFrameOfReference creation
.../vr/latest/getDevices_always_resolves.html | 5 +-
.../latest/vrSession_requestFrameOfReference.html | 76 ++++++++++++++++++
.../global-interface-listing-expected.txt | 19 +++++
.../WebKit/Source/modules/modules_idl_files.gni | 5 ++
third_party/WebKit/Source/modules/vr/BUILD.gn | 7 ++
.../modules/vr/latest/VRCoordinateSystem.cpp | 36 +++++++++
.../Source/modules/vr/latest/VRCoordinateSystem.h | 41 ++++++++++
.../modules/vr/latest/VRCoordinateSystem.idl | 11 +++
.../modules/vr/latest/VRFrameOfReference.cpp | 89 ++++++++++++++++++++++
.../Source/modules/vr/latest/VRFrameOfReference.h | 47 ++++++++++++
.../modules/vr/latest/VRFrameOfReference.idl | 19 +++++
.../vr/latest/VRFrameOfReferenceOptions.idl | 11 +++
.../WebKit/Source/modules/vr/latest/VRSession.cpp | 48 ++++++++++++
.../WebKit/Source/modules/vr/latest/VRSession.h | 5 ++
.../WebKit/Source/modules/vr/latest/VRSession.idl | 4 +-
.../Source/modules/vr/latest/VRStageBounds.cpp | 13 ++++
.../Source/modules/vr/latest/VRStageBounds.h | 32 ++++++++
.../Source/modules/vr/latest/VRStageBounds.idl | 11 +++
.../Source/modules/vr/latest/VRStageBoundsPoint.h | 33 ++++++++
.../modules/vr/latest/VRStageBoundsPoint.idl | 12 +++
20 files changed, 520 insertions(+), 4 deletions(-)

Upstream: git.chromium.org


  • Share