Loading gfx/vr/VRDisplayHost.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -162,6 +162,7 @@ VRDisplayHost::NotifyVSync() void VRDisplayHost::SubmitFrame(VRLayerParent* aLayer, PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect) { Loading @@ -173,7 +174,7 @@ VRDisplayHost::SubmitFrame(VRLayerParent* aLayer, PTextureParent* aTexture, } // Ensure that we only accept the first SubmitFrame call per RAF cycle. if (!mFrameStarted) { if (!mFrameStarted || aFrameId != mDisplayInfo.mFrameId) { return; } mFrameStarted = false; Loading gfx/vr/VRDisplayHost.h +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public: void StartFrame(); void SubmitFrame(VRLayerParent* aLayer, mozilla::layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect); Loading gfx/vr/VRDisplayPresentation.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ VRDisplayPresentation::~VRDisplayPresentation() void VRDisplayPresentation::SubmitFrame() { for (VRLayerChild *layer : mLayers) { layer->SubmitFrame(); layer->SubmitFrame(mDisplayClient->GetDisplayInfo().GetFrameId()); break; // Currently only one layer supported, submit only the first } } gfx/vr/VRManager.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ VRManager::GetDisplay(const uint32_t& aDisplayID) void VRManager::SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect) { Loading @@ -352,7 +353,7 @@ VRManager::SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, mLastFrame = th; RefPtr<VRDisplayHost> display = GetDisplay(aLayer->GetDisplayID()); if (display) { display->SubmitFrame(aLayer, aTexture, aLeftEyeRect, aRightEyeRect); display->SubmitFrame(aLayer, aTexture, aFrameId, aLeftEyeRect, aRightEyeRect); } } Loading gfx/vr/VRManager.h +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ public: void GetVRDisplayInfo(nsTArray<VRDisplayInfo>& aDisplayInfo); void SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect); RefPtr<gfx::VRControllerHost> GetController(const uint32_t& aControllerID); Loading Loading
gfx/vr/VRDisplayHost.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -162,6 +162,7 @@ VRDisplayHost::NotifyVSync() void VRDisplayHost::SubmitFrame(VRLayerParent* aLayer, PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect) { Loading @@ -173,7 +174,7 @@ VRDisplayHost::SubmitFrame(VRLayerParent* aLayer, PTextureParent* aTexture, } // Ensure that we only accept the first SubmitFrame call per RAF cycle. if (!mFrameStarted) { if (!mFrameStarted || aFrameId != mDisplayInfo.mFrameId) { return; } mFrameStarted = false; Loading
gfx/vr/VRDisplayHost.h +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public: void StartFrame(); void SubmitFrame(VRLayerParent* aLayer, mozilla::layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect); Loading
gfx/vr/VRDisplayPresentation.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ VRDisplayPresentation::~VRDisplayPresentation() void VRDisplayPresentation::SubmitFrame() { for (VRLayerChild *layer : mLayers) { layer->SubmitFrame(); layer->SubmitFrame(mDisplayClient->GetDisplayInfo().GetFrameId()); break; // Currently only one layer supported, submit only the first } }
gfx/vr/VRManager.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ VRManager::GetDisplay(const uint32_t& aDisplayID) void VRManager::SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect) { Loading @@ -352,7 +353,7 @@ VRManager::SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, mLastFrame = th; RefPtr<VRDisplayHost> display = GetDisplay(aLayer->GetDisplayID()); if (display) { display->SubmitFrame(aLayer, aTexture, aLeftEyeRect, aRightEyeRect); display->SubmitFrame(aLayer, aTexture, aFrameId, aLeftEyeRect, aRightEyeRect); } } Loading
gfx/vr/VRManager.h +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ public: void GetVRDisplayInfo(nsTArray<VRDisplayInfo>& aDisplayInfo); void SubmitFrame(VRLayerParent* aLayer, layers::PTextureParent* aTexture, uint64_t aFrameId, const gfx::Rect& aLeftEyeRect, const gfx::Rect& aRightEyeRect); RefPtr<gfx::VRControllerHost> GetController(const uint32_t& aControllerID); Loading