Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WebVR][OpenVR] Retrieve stage parameters
https://bugs.webkit.org/show_bug.cgi?id=182976 Reviewed by Žan Doberšek. Use OpenVR to retrieve stage parameters, i.e., play area size and the transformation from sitting to standing position. It includes the same fallback used by Firefox to provide sensible values in case we cannot get the required information from the VR SDK (it's quite common not to have defined a play area). * Modules/webvr/VRDisplay.cpp: (WebCore::VRDisplay::stageParameters const): * Modules/webvr/VRDisplay.h: * Modules/webvr/VRStageParameters.cpp: (WebCore::VRStageParameters::VRStageParameters): (WebCore::VRStageParameters::sittingToStandingTransform const): (WebCore::VRStageParameters::sizeX const): (WebCore::VRStageParameters::sizeZ const): * Modules/webvr/VRStageParameters.h: (WebCore::VRStageParameters::create): * platform/vr/VRPlatformDisplay.h: * platform/vr/openvr/VRPlatformDisplayOpenVR.cpp: (WebCore::VRPlatformDisplayOpenVR::VRPlatformDisplayOpenVR): (WebCore::VRPlatformDisplayOpenVR::updateStageParameters): * platform/vr/openvr/VRPlatformDisplayOpenVR.h: Canonical link: https://commits.webkit.org/198745@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters