Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSome XRSpace improvements #23055
Some XRSpace improvements #23055
Conversation
highfive
commented
Mar 18, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 18, 2019
8282fd5
to
d192be5
|
LGTM, with some commenting nits. What's our testing story? Should we add some WPT tests? |
| fn GetViewerPose(&self, reference: &XRReferenceSpace) -> Option<DomRoot<XRViewerPose>> { | ||
| if let Some(_) = reference.downcast::<XRStationaryReferenceSpace>() { | ||
| // For 3DOF devices all three kinds of reference spaces are identical | ||
| // XXXManishearth support originOffset |
This comment has been minimized.
This comment has been minimized.
asajeffrey
Mar 19, 2019
Member
If we're checking this in, it should be a TODO preferably with a link to an issue.
| let right = XRView::new(&self.global(), &self.session, XREye::Right, &self.data); | ||
| Some(XRViewerPose::new(&self.global(), &left, &right)) | ||
| } else { | ||
| // XXXManishearth support identity reference spaces |
This comment has been minimized.
This comment has been minimized.
|
The spec is in a state of flux so there aren't any tests IIRC :( Mostly trying to keep up with it and build scaffolding for features which aren't yet finalized (but I know the general shape of) |
|
@bors-servo r=asajeffrey Filed #23070 I actually figured out the spec issue behind the fixme (see immersive-web/webxr#565 (comment)), but I'll let this land first. Filed testing issue #23071 |
|
|
Some XRSpace improvements Proper XRSpace support is blocked on immersive-web/webxr#565 , but in the meantime this improves XRSpace support a little bit, preparing both for support in getViewerPose and getPose as well as handling input spaces eventually. r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23055) <!-- Reviewable:end -->
|
|
Manishearth commentedMar 18, 2019
•
edited by SimonSapin
Proper XRSpace support is blocked on immersive-web/webxr#565 , but in the meantime this improves XRSpace support a little bit, preparing both for support in getViewerPose and getPose as well as handling input spaces eventually.
r? @jdm
This change is