New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new WebXR API in script #23731
Merged
+702
−485
Merged
Use new WebXR API in script #23731
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5f69a9e
Expose webxr registry to window
Manishearth b7eaceb
Update webxr dependencies
Manishearth fb105d9
Hook supportsSession() into new xr crate
Manishearth d55ed42
Hook requestSession() into new XR crate
Manishearth c7ed437
Fill in updateRenderState() stubs
Manishearth 84014ff
Add basic rAF and cAF functions that do nothing with the callbacks
Manishearth cf53cf6
Add actual frame request in rAF
Manishearth 33421e8
Apply pending render states in RAF
Manishearth 877b6c6
Trigger callbacks in RAF
Manishearth 104a712
Remove old RAF code
Manishearth 8780edb
Hook webxr data into XRFrame/XRView/XRSpace
Manishearth 57c8536
Clean up vrdisplay, set active immersive session correctly
Manishearth b818af7
Add a viewer typed reference space
Manishearth 0d5d1a3
Update test API, hook it up to webxr mocking
Manishearth b654b60
Hook input code into new webxr crate
Manishearth 7a8640e
Remove session deactivation
Manishearth 0b88c56
Add active and animationFrame flags to XRFrame
Manishearth 036b495
Error on invalid rotation values in XRRigidTransform constructor
Manishearth c5a0fc5
Use separate IPC-only locking mechanism when locking from webxr
Manishearth File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
| @@ -57,8 +57,8 @@ use devtools_traits::{CSSError, TimelineMarkerType, WorkerId}; | ||||
| use encoding_rs::{Decoder, Encoding}; | ||||
| use euclid::Length as EuclidLength; | ||||
| use euclid::{ | ||||
| Point2D, Rect, RigidTransform3D, Rotation3D, Transform2D, Transform3D, TypedScale, TypedSize2D, | ||||
| Vector2D, | ||||
| Point2D, Rect, RigidTransform3D, Rotation3D, Transform2D, Transform3D, TypedRigidTransform3D, | ||||
| TypedScale, TypedSize2D, Vector2D, | ||||
| }; | ||||
| use html5ever::buffer_queue::BufferQueue; | ||||
| use html5ever::{LocalName, Namespace, Prefix, QualName}; | ||||
| @@ -486,7 +486,12 @@ unsafe_no_jsmanaged_fields!(WebGLVersion); | ||||
| unsafe_no_jsmanaged_fields!(WebGLSLVersion); | ||||
| unsafe_no_jsmanaged_fields!(MediaList); | ||||
| unsafe_no_jsmanaged_fields!(WebVRGamepadData, WebVRGamepadState, WebVRGamepadHand); | ||||
| unsafe_no_jsmanaged_fields!(webxr_api::Registry); | ||||
| unsafe_no_jsmanaged_fields!( | ||||
| webxr_api::Registry, | ||||
| webxr_api::Session, | ||||
| webxr_api::Frame, | ||||
| webxr_api::InputSource | ||||
| ); | ||||
| unsafe_no_jsmanaged_fields!(ScriptToConstellationChan); | ||||
| unsafe_no_jsmanaged_fields!(InteractiveMetrics); | ||||
| unsafe_no_jsmanaged_fields!(InteractiveWindow); | ||||
| @@ -607,6 +612,13 @@ unsafe impl<T, U> JSTraceable for TypedScale<f32, T, U> { | ||||
| } | ||||
| } | ||||
|
|
||||
| unsafe impl<T, U> JSTraceable for TypedRigidTransform3D<f32, T, U> { | ||||
| #[inline] | ||||
|
This conversation was marked as resolved
by asajeffrey
jdm
Member
|
||||
| unsafe_no_jsmanaged_fields!(RefCell<Decoder>); |
This comment has been minimized.
This comment has been minimized.
jdm
Jul 9, 2019
Member
My mistake. It's intentional, because we've been bitten by too-broad generic implementations before.
This comment has been minimized.
This comment has been minimized.
Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Oh that's annoying,
unsafe_no_jsmanaged_fields!doesn't like generics?