Loading dom/vr/VRServiceTest.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ VRMockDisplay::VRMockDisplay(const nsCString& aID, uint32_t aDeviceID) : mDeviceID(aDeviceID) : mDeviceID(aDeviceID) , mTimestamp(TimeStamp::Now()) , mTimestamp(TimeStamp::Now()) { { memset(&mDisplayInfo, 0, sizeof(mDisplayInfo)); mDisplayInfo.mDisplayName = aID; mDisplayInfo.mDisplayName = aID; mDisplayInfo.mType = VRDeviceType::Puppet; mDisplayInfo.mType = VRDeviceType::Puppet; mDisplayInfo.mIsConnected = true; mDisplayInfo.mIsConnected = true; Loading gfx/vr/VRDisplayHost.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -65,6 +65,8 @@ VRDisplayHost::VRDisplayHost(VRDeviceType aType) : mFrameStarted(false) : mFrameStarted(false) { { MOZ_COUNT_CTOR(VRDisplayHost); MOZ_COUNT_CTOR(VRDisplayHost); memset(&mDisplayInfo, 0, sizeof(VRDisplayInfo)); memset(&mLastUpdateDisplayInfo, 0, sizeof(VRDisplayInfo)); mDisplayInfo.mType = aType; mDisplayInfo.mType = aType; mDisplayInfo.mDisplayID = VRSystemManager::AllocateDisplayID(); mDisplayInfo.mDisplayID = VRSystemManager::AllocateDisplayID(); mDisplayInfo.mPresentingGroups = 0; mDisplayInfo.mPresentingGroups = 0; Loading gfx/vr/gfxVR.h +0 −4 Original line number Original line Diff line number Diff line Loading @@ -133,10 +133,6 @@ struct VRFieldOfView { }; }; struct VRHMDSensorState { struct VRHMDSensorState { VRHMDSensorState() { Clear(); } int64_t inputFrameID; int64_t inputFrameID; double timestamp; double timestamp; VRDisplayCapabilityFlags flags; VRDisplayCapabilityFlags flags; Loading gfx/vr/gfxVROSVR.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -287,7 +287,7 @@ VRDisplayOSVR::GetSensorState() //this usually goes into app's mainloop //this usually goes into app's mainloop osvr_ClientUpdate(*m_ctx); osvr_ClientUpdate(*m_ctx); VRHMDSensorState result; VRHMDSensorState result{}; OSVR_TimeValue timestamp; OSVR_TimeValue timestamp; OSVR_OrientationState orientation; OSVR_OrientationState orientation; Loading gfx/vr/gfxVROculus.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -863,7 +863,7 @@ VRDisplayOculus::ZeroSensor() VRHMDSensorState VRHMDSensorState VRDisplayOculus::GetSensorState() VRDisplayOculus::GetSensorState() { { VRHMDSensorState result; VRHMDSensorState result{}; if (mSession->IsTrackingReady()) { if (mSession->IsTrackingReady()) { double predictedFrameTime = 0.0f; double predictedFrameTime = 0.0f; if (gfxPrefs::VRPosePredictionEnabled()) { if (gfxPrefs::VRPosePredictionEnabled()) { Loading @@ -882,7 +882,7 @@ VRDisplayOculus::GetSensorState() VRHMDSensorState VRHMDSensorState VRDisplayOculus::GetSensorState(double absTime) VRDisplayOculus::GetSensorState(double absTime) { { VRHMDSensorState result; VRHMDSensorState result{}; ovrTrackingState state = ovr_GetTrackingState(mSession->Get(), absTime, true); ovrTrackingState state = ovr_GetTrackingState(mSession->Get(), absTime, true); ovrPoseStatef& pose(state.HeadPose); ovrPoseStatef& pose(state.HeadPose); Loading Loading
dom/vr/VRServiceTest.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ VRMockDisplay::VRMockDisplay(const nsCString& aID, uint32_t aDeviceID) : mDeviceID(aDeviceID) : mDeviceID(aDeviceID) , mTimestamp(TimeStamp::Now()) , mTimestamp(TimeStamp::Now()) { { memset(&mDisplayInfo, 0, sizeof(mDisplayInfo)); mDisplayInfo.mDisplayName = aID; mDisplayInfo.mDisplayName = aID; mDisplayInfo.mType = VRDeviceType::Puppet; mDisplayInfo.mType = VRDeviceType::Puppet; mDisplayInfo.mIsConnected = true; mDisplayInfo.mIsConnected = true; Loading
gfx/vr/VRDisplayHost.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -65,6 +65,8 @@ VRDisplayHost::VRDisplayHost(VRDeviceType aType) : mFrameStarted(false) : mFrameStarted(false) { { MOZ_COUNT_CTOR(VRDisplayHost); MOZ_COUNT_CTOR(VRDisplayHost); memset(&mDisplayInfo, 0, sizeof(VRDisplayInfo)); memset(&mLastUpdateDisplayInfo, 0, sizeof(VRDisplayInfo)); mDisplayInfo.mType = aType; mDisplayInfo.mType = aType; mDisplayInfo.mDisplayID = VRSystemManager::AllocateDisplayID(); mDisplayInfo.mDisplayID = VRSystemManager::AllocateDisplayID(); mDisplayInfo.mPresentingGroups = 0; mDisplayInfo.mPresentingGroups = 0; Loading
gfx/vr/gfxVR.h +0 −4 Original line number Original line Diff line number Diff line Loading @@ -133,10 +133,6 @@ struct VRFieldOfView { }; }; struct VRHMDSensorState { struct VRHMDSensorState { VRHMDSensorState() { Clear(); } int64_t inputFrameID; int64_t inputFrameID; double timestamp; double timestamp; VRDisplayCapabilityFlags flags; VRDisplayCapabilityFlags flags; Loading
gfx/vr/gfxVROSVR.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -287,7 +287,7 @@ VRDisplayOSVR::GetSensorState() //this usually goes into app's mainloop //this usually goes into app's mainloop osvr_ClientUpdate(*m_ctx); osvr_ClientUpdate(*m_ctx); VRHMDSensorState result; VRHMDSensorState result{}; OSVR_TimeValue timestamp; OSVR_TimeValue timestamp; OSVR_OrientationState orientation; OSVR_OrientationState orientation; Loading
gfx/vr/gfxVROculus.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -863,7 +863,7 @@ VRDisplayOculus::ZeroSensor() VRHMDSensorState VRHMDSensorState VRDisplayOculus::GetSensorState() VRDisplayOculus::GetSensorState() { { VRHMDSensorState result; VRHMDSensorState result{}; if (mSession->IsTrackingReady()) { if (mSession->IsTrackingReady()) { double predictedFrameTime = 0.0f; double predictedFrameTime = 0.0f; if (gfxPrefs::VRPosePredictionEnabled()) { if (gfxPrefs::VRPosePredictionEnabled()) { Loading @@ -882,7 +882,7 @@ VRDisplayOculus::GetSensorState() VRHMDSensorState VRHMDSensorState VRDisplayOculus::GetSensorState(double absTime) VRDisplayOculus::GetSensorState(double absTime) { { VRHMDSensorState result; VRHMDSensorState result{}; ovrTrackingState state = ovr_GetTrackingState(mSession->Get(), absTime, true); ovrTrackingState state = ovr_GetTrackingState(mSession->Get(), absTime, true); ovrPoseStatef& pose(state.HeadPose); ovrPoseStatef& pose(state.HeadPose); Loading