Bug 1306468 - Remove VRDisplay.getImmediatePose
- The WebVR 1.1 Spec update has removed the VRDisplay.getImmediatePose function.
MozReview-Commit-ID: 9rBJki8G3Zz
--- a/dom/vr/VRDisplay.cpp
+++ b/dom/vr/VRDisplay.cpp
@@ -495,25 +495,16 @@ already_AddRefed<VRPose>
VRDisplay::GetPose()
{
gfx::VRHMDSensorState state = mClient->GetSensorState();
RefPtr<VRPose> obj = new VRPose(GetParentObject(), state);
return obj.forget();
}
-already_AddRefed<VRPose>
-VRDisplay::GetImmediatePose()
-{
- gfx::VRHMDSensorState state = mClient->GetImmediateSensorState();
- RefPtr<VRPose> obj = new VRPose(GetParentObject(), state);
-
- return obj.forget();
-}
-
void
VRDisplay::ResetPose()
{
mClient->ZeroSensor();
}
already_AddRefed<Promise>
VRDisplay::RequestPresent(const nsTArray<VRLayer>& aLayers, ErrorResult& aRv)
--- a/dom/vr/VRDisplay.h
+++ b/dom/vr/VRDisplay.h
@@ -233,17 +233,16 @@ public:
gfx::VRDisplayClient *GetClient() {
return mClient;
}
virtual already_AddRefed<VREyeParameters> GetEyeParameters(VREye aEye);
already_AddRefed<VRPose> GetPose();
- already_AddRefed<VRPose> GetImmediatePose();
void ResetPose();
double DepthNear() {
return mDepthNear;
}
double DepthFar() {
return mDepthFar;
--- a/dom/webidl/VRDisplay.webidl
+++ b/dom/webidl/VRDisplay.webidl
@@ -196,23 +196,16 @@ interface VRDisplay : EventTarget {
* submitFrame().
*
* The VRPose will contain the position, orientation, velocity,
* and acceleration of each of these properties.
*/
[NewObject] VRPose getPose();
/**
- * Return the current instantaneous pose of the VRDisplay, with no
- * prediction applied. Every call to getImmediatePose() may
- * return a different value, even within a single frame.
- */
- [NewObject] VRPose getImmediatePose();
-
- /**
* Reset the pose for this display, treating its current position and
* orientation as the "origin/zero" values. VRPose.position,
* VRPose.orientation, and VRStageParameters.sittingToStandingTransform may be
* updated when calling resetPose(). This should be called in only
* sitting-space experiences.
*/
void resetPose();