aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrsession.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use Foo_Binding instead of FooBinding for namespace modules (#30447)Samson2023-09-301-2/+2
| | | | | * Update Codegen.py to emit Foo_Binding instead of FooBinding * s/FooBinding/Foo_Binding/g
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-26/+27
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-1/+1
|
* Add test for layers feature (currently always false)Alan Jeffrey2020-08-041-3/+8
|
* Implement the changes to updating the render state from the WebXR Layers specAlan Jeffrey2020-08-031-17/+56
|
* Update WebXR Layer IDL, and matching changes to the Rust code.Alan Jeffrey2020-08-031-48/+14
|
* Update XRWebGLLayer to match specification.Josh Matthews2020-07-201-4/+2
|
* Support for webxr layer managementAlan Jeffrey2020-06-281-37/+105
|
* Auto merge of #26551 - Manishearth:per-view, r=asajeffreybors-servo2020-05-181-10/+6
|\ | | | | | | | | | | Update to handle per-view eye transforms Depends on https://github.com/servo/webxr/pull/175
| * Update to treat view transforms as native-relativeManish Goregaokar2020-05-181-2/+5
| |
| * Move viewports to being per-session, not per-frameManish Goregaokar2020-05-181-8/+1
| |
* | Handle cancelAnimationFrame() when called within a requestAnimationFrame() ↵huangjiahua2020-05-131-2/+20
|/ | | | callback
* Add feature gating for hit testsManish Goregaokar2020-04-191-0/+12
|
* Add XRSession::requestHitTestSource()Manish Goregaokar2020-04-191-4/+77
|
* Add XRRay(transform) constructorManish Goregaokar2020-04-191-4/+2
|
* Auto merge of #26164 - Manishearth:dirty-endsession, r=jdmbors-servo2020-04-131-0/+17
|\ | | | | | | | | | | | | | | | | | | Dirty canvas when exiting immersive sessions Fixes https://github.com/servo/servo/issues/26162, fixes servo/webxr#155 We basically end up in a situation where the main thread is asleep. It's unclear to me why it doesn't wake up after attempts to interact with the screen, but we stopped dirtying the canvas during the immersive session (https://github.com/servo/servo/pull/26077) so the main thread wasn't awake initially. This is probably not the cleanest fix -- we really should not be ending up in situations where the main thread is perma-asleep -- however, we should be dirtying the canvas after exiting immersive mode _anyway_ since the contents need to be shown to the user, so this fix is still valid, even if it's not fixing the root cause.
| * Dirty layers when changing visibility stateManish Goregaokar2020-04-131-0/+17
| |
* | Added first-cut implementation of XR layersAlan Jeffrey2020-04-131-11/+48
|/
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* Update to 3/4 nightly rustc.Josh Matthews2020-03-101-9/+9
|
* Remove unused imports.Josh Matthews2020-03-091-4/+0
|
* Remove XR canvas dirtying step.Josh Matthews2020-03-091-8/+0
|
* Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-091-1/+5
| | | | implementations.
* Revert "Auto merge of #25898 - jdm:rustup, r=asajeffrey"Josh Matthews2020-03-061-9/+9
| | | | | This reverts commit ea8aed1ba927012d992a3d3c9880858e0282f5f9, reversing changes made to 3749eb53971b688b855d6b1850f41b4c346cd2da.
* Update to 3/4 nightly rustc.Josh Matthews2020-03-041-9/+9
|
* Auto merge of #25738 - jsjoeio:jsjoeio/issue-25732-rename-xr, r=Manishearth,jdmbors-servo2020-02-241-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refactor: rename XR to XRSystem <!-- Please describe your changes on the following line: --> This PR renames XR to XRSystem. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #25732 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's the changing of a name (XR -> XRSystem) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * refactor: rename XR to XRSystemJavaScript Joe2020-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | chore: fix formatting refactor: change filename and ref to xrsystem refactor: change filename XRSystem.webidl refactor: update crate in navigator refactor: use XRSystem instead of XR in navigator refactor: update Bindings.conf refactor: use XRSystemMethods fix: update assertions for XRSystem fix: update manifest json
* | Add profiling for WebXRManish Goregaokar2020-02-221-1/+25
|/
* Auto merge of #25773 - Manishearth:input-sources-change, r=jdmbors-servo2020-02-161-2/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always trigger an input sources change event on session creation Fixes our behavior to match the spec, and to specifically do it in a way that makes sense. This is also what Chromium does currently, though I'm not sure if it does the scheduling the same way. The spec for this may change, see https://github.com/immersive-web/webxr/issues/961. This fix, along with https://github.com/servo/servo/pull/25770 , makes three.js content work on servo. Instead of this fix we can also wait for https://github.com/mrdoob/three.js/issues/18638 to land (which isn't certain until we figure out more about https://github.com/immersive-web/webxr/issues/961 ) Even if https://github.com/immersive-web/webxr/issues/961 decides to choose the option that obviates this patch, we should probably keep it for now since there's already content out in the wild relying on this behavior. r? @jdm @asajeffrey
| * Always trigger an input sources change event on session creationManish Goregaokar2020-02-151-2/+31
| |
* | Expose DOMHighResTimeStamps at lower resPatrick Shaughnessy2020-02-031-3/+3
|/
* rename compartment to realmKunal Mohan2020-01-241-4/+4
|
* Gate reference space creation on requested featuresManish Goregaokar2020-01-211-1/+16
|
* Handle SetTargetRayMode and SetHandednessManish Goregaokar2020-01-211-0/+3
|
* Handle AddInput/RemoveInput eventsManish Goregaokar2020-01-091-1/+13
|
* Kick the raf loop in inline sessionsautorafManish Goregaokar2020-01-021-0/+2
|
* Do not wait for rAF to be requested in render loopManish Goregaokar2019-12-291-24/+11
|
* Correctly clamp ivfov and depth valuesManish Goregaokar2019-12-111-3/+23
|
* Set inlineVerticalFieldOfView to null for immersive sessionsManish Goregaokar2019-12-111-3/+11
|
* Use correct timestampsManish Goregaokar2019-12-111-2/+5
|
* Don't attempt to wait for session ending when it has already endedManish Goregaokar2019-12-101-0/+13
| | | | See https://github.com/immersive-web/webxr/pull/939
* Give inline sessions the correct projection matricesManish Goregaokar2019-12-101-8/+58
|
* Add inlineVerticalFieldOfView supportManish Goregaokar2019-12-101-5/+9
|
* Allow constructing inline sessionsManish Goregaokar2019-12-101-1/+6
|
* Add support for squeeze eventsManish Goregaokar2019-11-221-7/+23
|
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-16/+15
| | | | | | Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com> Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Always request new XR framesManish Goregaokar2019-10-151-19/+11
|
* Unconditionally set up rAF loop on initializationManish Goregaokar2019-10-151-23/+28
|
* Expose onvisibilitychangeManish Goregaokar2019-10-111-1/+10
|