aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions
Commit message (Collapse)AuthorAgeFilesLines
* Update rustfmt to the 2024 style edition (#35764)Simon Wülker2025-03-0317-19/+19
| | | | | | | | | | | | | * Use 2024 style edition Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Reformat all code Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Propagate `CanGc` arguments through callers in constructors (#35541)Auguste Baum2025-02-2018-50/+36
| | | Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
* Move various reflector types and traits to script_bindings (#35279)Josh Matthews2025-02-0416-16/+16
| | | | | | | | | | | | | * script: Move Reflector to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Extract global() helper from DomObject into new trait. Move DomObject and related traits to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Feature-gate all crown support. (#35055)Josh Matthews2025-01-183-3/+3
| | | | | | | | | | | | | * script: Feature-gate all crown support. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use cfg(crown) instead of a cargo feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* script: Limit public exports. (#34915)Josh Matthews2025-01-1021-76/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * script: Restrict reexport visibility of DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Mass pub->pub(crate) conversion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Hide existing dead code warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix unit tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * More formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* Add CanGc argument to reflect_dom_object (#34606)Domenico Rizzo2024-12-1316-5/+52
| | | | | | | | | | | | | | | | | | | | | * applied mach fmt Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Refinements Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Modified reflect_dom_object signature and all its calls Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> * fix function calls when parameter is passed up Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> --------- Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
* Generate a trait abstracting over all known DOM interfaces (#34357)Josh Matthews2024-11-242-2/+2
| | | | | | | | | | | | | | | | | * 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>
* Support associated types in must_root lint (#34163)Samson2024-11-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support associated types in must_root lint Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fix Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fixups Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fixup Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Fix crown violations Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fix eng Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * make new test use RUSTC_BOOTSTRAP=1 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* 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>
* Replace .map_or(false with Option::is_some_and (#33468)Simon Wülker2024-09-161-1/+1
| | | Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Fix more clippy (#32740)石蕊 (Pi-Cla)2024-07-091-6/+6
|
* Address issues uncovered by rust-1.78 beta (#32130)Martin Robinson2024-04-221-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes changes to allow Servo to compile with the 1.78 version of Rust: - Dead code is removd (Rust seems to have gotten better at detecting it). - The `FlowRef` `DerefMut` is updated according to @SimonSapin's advice [^1]. - The `imports.rs` now explicitly silences warnings about unused imports. [^1]: https://github.com/servo/servo/issues/6503#issuecomment-2066088179 <!-- Please describe your changes on the following line: --> --- <!-- 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 do not require tests because they should not change behavior. <!-- 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. -->
* Fixed some clippy warnings in components (#32107)komuhangi2024-04-191-1/+1
| | | | | | | * Fixed some clippy warnings in components * Updated handling of NaN values in comparison * Updated formatting using ./mach fmt
* clippy: Fix needless_lifetimes warnings (#31933)Oluwatobi Sofela2024-03-291-1/+1
|
* clippy: Fix collapsible_if warnings (#31852)Oluwatobi Sofela2024-03-251-4/+4
|
* clippy: Fix many warnings in `components/script` (#31717)Richard Dushime2024-03-191-2/+2
| | | | | | | | | | | | | | | | | * 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-1/+1
| | | | 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.
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove script_plugins * Use crown instead of script_plugins * crown_is_not_used * Use crown in command base * bootstrap crown * tidy happy * disable sccache * Bring crown in tree * Install crown from tree * fix windows ci * fix warning * fix mac libscript_plugins.dylib is not available anymore * Update components/script/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update for nightly-2023-03-18 Mostly just based off https://github.com/servo/servo/pull/30630 * Always install crown it's slow only when there is new version * Run crown test with `mach test-unit` * Small fixups; better trace_in_no_trace tests * Better doc * crown in config.toml * Fix tidy for real * no sccache on rustc_wrapper * document rustc overrides * fixup of compiletest * Make a few minor comment adjustments * Fix a typo in python/servo/platform/base.py Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> * Proper test types * Ignore tidy on crown/tests --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-1120-49/+71
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* webgl: Mark float/half-float textures as filterable in webgl2.Josh Matthews2020-05-131-1/+4
|
* Implement EXT_frag_depthAlexandrov Sergey2020-05-113-2/+76
|
* webgl: Fix tidyMátyás Mustoha2020-04-301-4/+6
|
* webgl: Fix support for float/half-float texture formats.Josh Matthews2020-04-305-40/+24
|
* Update surfman to 0.2 and remove glutinAlan Jeffrey2020-04-171-2/+20
|
* Fix misspelled "get_suported_extensions" functionDaniel Alley2020-04-061-1/+1
| | | | closes #21122
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-2015-50/+6
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-152-2/+2
| | | | CC https://github.com/rust-lang/rust/issues/66079
* webgl: Always convert float/half-float-based types to internal texture types.Josh Matthews2019-10-292-26/+18
|
* Replace use of gleam in webgl with sparkle.Josh Matthews2019-09-111-1/+1
|
* Make GL/GLES decisions based on the API in use.Josh Matthews2019-07-124-8/+14
|
* Add initial support for WebGL compressed texturesMátyás Mustoha2019-05-214-0/+188
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-2813-13/+13
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-1918-18/+18
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-082-3/+3
|
* Reorder importsPyfisch2018-11-0617-36/+44
|
* Format remaining filesPyfisch2018-11-063-11/+14
|
* `cargo fix --edition`Simon Sapin2018-11-0617-84/+84
|
* Implement WEBGL_color_buffer_float and EXT_color_buffer_half_float (fixes ↵Josh Matthews2018-11-056-9/+126
| | | | #22113)
* Properly support gl_PointSize and gl_PointCoordAnthony Ramine2018-10-183-6/+6
| | | | | | | | Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
* Format script componentchansuke2018-09-1915-151/+259
|
* Use WebGLResult for returns of instanced draw methodsAnthony Ramine2018-09-061-2/+8
|
* Auto merge of #21313 - jdm:glstuff, r=noxbors-servo2018-08-023-15/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Framebuffer and renderbuffer fixes This commits address two separate panics that occur when running the framebuffer-object-attachment.html test. The test still panics due to another framebuffer completion status problem, so the overall test results don't demonstrate any improvement. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21252 - [x] There are tests for these changes <!-- 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/21313) <!-- Reviewable:end -->
| * webgl: Emulate some renderbuffer formats in non-GLES.Josh Matthews2018-08-023-15/+6
| |
* | Always use a WebGLVertexArrayObject to handle vertex attribsAnthony Ramine2018-08-023-151/+12
|/ | | | This lets us clean up how buffers are reference-counted.
* Store a reference to the WebGLRenderingContext in WebGLObjectAnthony Ramine2018-07-241-9/+1
|
* Implement instanced WebGL drawing calls (part of #20791)Anthony Ramine2018-07-083-1/+123
|
* Rename VertexAttribs::set_from to VertexAttribs::clone_fromAnthony Ramine2018-07-051-2/+2
|
* Introduce VertexAttribDataAnthony Ramine2018-07-051-4/+4
|
* Rename BoundAttribBuffers to VertexAttribs and make it store a sliceAnthony Ramine2018-07-051-6/+12
|