[Webkit-unassigned] [Bug 221225] Implement WebXR getViewerPose and getPose

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 16 07:15:31 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221225

--- Comment #16 from youenn fablet <youennf at gmail.com> ---
If you want to keep the design of using only WebXRSession ref, you will need to keep all spaces in WebXRSession (see how XMLHtppRequestUpload uses the ref/deref mechanism I mentioned before).

Looking further the spec (I am not familiar with it), there is not a 1-1 relationship between session and space.
- Spaces always need a reference to their session. I think having a Ref<WebXRSession> is good.
- One space, the viewer space, is creating a circular reference as its session needs to ref it.

It is not totally clear to me whether the viewer space is exposed somehow to scripts.

One possibility would be to have the session keep a WeakPtr<> of the viewer space if it is easy to recreate it as needed.
Another possibility is for the viewer space to be a different class, not refcounted at all, but fully owned by the WebXRSession as a unique_ptr.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210216/f8e45eff/attachment.htm>


More information about the webkit-unassigned mailing list