aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrwebgllayer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Filter out webidl files based on special comments, and feature-gate webxr ↵Josh Matthews2024-11-241-367/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces. (#34348) * Filter out webidl files based on skip-if directives. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Don't build XR functionality without webxr feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Adjust imports for file movement. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Clean up webxr module import. Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* Generate a trait abstracting over all known DOM interfaces (#34357)Josh Matthews2024-11-241-1/+1
| | | | | | | | | | | | | | | | | * script: Generate trait for all DOM interfaces and parameterize generated Methods traits over it. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Update trait implementations with new generic type. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* replace sparkle with glow in components/script (#33911)Samson2024-10-191-2/+2
| | | | | | | | | | | | | | | | | * replace sparkle's GlType with canvas_traits's GlType Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * remove sparkle from components/servo Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * remove sparkle from script Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* script: Include constructors and static methods in generated DOM traits (#33665)Josh Matthews2024-10-081-68/+66
| | | | | | | | | | | | | | | | | * Add all constructors, special operations, and static methods to generated DOM interface traits. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Move all constructors and static methods defined in bare impl blocks inside FooMethods trait impls. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add missing doc links. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Permitted functions to have too many arguments in components/script/dom (#33632)komuhangi2024-10-031-0/+1
| | | Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
* webgl: Update IDL exposed members (#33509)Daniel Adams2024-09-221-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update IDLs to expose on Workers Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update usage of Canvas/OffscreenCanvas union, add label Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update WPT expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix match arm Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec links Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update interfaces.worker.js Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Start marking functions that can transitively trigger a GC (#33144)Josh Matthews2024-08-221-0/+5
| | | | | | | | | | | | | | | | | * Mark JS reflector wrappers as CanGc. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Propagate CanGc from reflect_dom_object_with_proto. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Mark DOM constructors as GC operations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* webxr: Update XRWebGLLayer interface to latest spec (#33157)Daniel Adams2024-08-221-0/+19
| | | | | | | | | | | | | * Update XRWebGLLayer interface to latest spec Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec links Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* webxr: Update XRView to latest spec (#33145)Daniel Adams2024-08-211-1/+6
| | | | | | | | | | | | | * Add recommendedViewportScale and requestViewportScale Signed-off-by: Daniel Adams <msub2official@gmail.com> * Remove currently unused internal slots Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* clippy: Fix many warnings in `components/script` (#31717)Richard Dushime2024-03-191-1/+1
| | | | | | | | | | | | | | | | | * Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-7/+7
| | | | This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-16/+12
| | | | | * strict imports formatting * Reformat all imports
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-3/+8
|
* Make textures that come from webxr invalid outside an rAFAlan Jeffrey2020-08-061-2/+4
|
* Update WebXR Layer IDL, and matching changes to the Rust code.Alan Jeffrey2020-08-031-65/+25
|
* Don't delete GL textures created by WebXRAlan Jeffrey2020-07-291-2/+2
|
* Auto merge of #27313 - jdm:layer-idl, r=asajeffreybors-servo2020-07-211-24/+15
|\ | | | | | | | | | | | | | | | | | | | | | | Update XRWebGLLayer to match specification. This unbreaks most of the webxr WPT tests. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27312 - [x] There are tests for these changes
| * Update XRWebGLLayer to match specification.Josh Matthews2020-07-201-24/+15
| |
* | Save / restore state when updating opaque framebuffer bindingsAlan Jeffrey2020-07-201-2/+29
|/
* Support depth and stencil in webxrAlan Jeffrey2020-07-101-1/+21
|
* Support for webxr layer managementAlan Jeffrey2020-06-281-44/+112
|
* Move viewports to being per-session, not per-frameManish Goregaokar2020-05-181-3/+18
|
* Make views a per-frame dealManish Goregaokar2020-05-181-20/+3
|
* Handle StereoCapture in GetViewport()Manish Goregaokar2020-05-121-0/+3
|
* Support WebGL2 contexts in XRWebGLLayer.Josh Matthews2020-04-081-11/+45
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Construct viewports for inline sessionsManish Goregaokar2019-12-111-3/+5
|
* Give inline sessions the correct projection matricesManish Goregaokar2019-12-101-16/+27
|
* Add inline support to XRWebGLLayerManish Goregaokar2019-12-101-20/+26
|
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-103/+23
| | | | | | 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>
* xr: Synchronize WebGL layer creation with underlying GL APIs.Josh Matthews2019-10-091-0/+3
|
* webxr: Use the same texture format as the original GL context's framebuffer ↵Josh Matthews2019-09-201-3/+5
| | | | when creating an XR GL layer.
* Create depth and stencil attachments for XRWebGLLayerAlan Jeffrey2019-08-281-4/+42
|
* Better error detection when creating an XRWebGLLayerAlan Jeffrey2019-08-281-1/+17
|
* Get XR sessions to track the draw texture, so we render the XR framebuffer ↵Alan Jeffrey2019-07-281-0/+4
| | | | rather than the default canvas framebuffer
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-1/+1
|
* Make use of ended flag, get rid of XRLayerManish Goregaokar2019-07-221-4/+14
|
* Added framebuffer and related attributes to XRWebGLLayerAlan Jeffrey2019-07-181-17/+109
|
* Silence unused warningsManish Goregaokar2019-01-031-14/+12
|
* Add spec linksManish Goregaokar2018-12-221-0/+6
|
* Fill in XR frame/pose/view implementationsManish Goregaokar2018-12-211-11/+26
|
* Support fetching viewport infoManish Goregaokar2018-12-211-0/+21
|
* Fill in some of XRWebGLLayerManish Goregaokar2018-12-201-5/+56
|
* Basic XRFrame interfaceManish Goregaokar2018-12-191-0/+31