aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions/ext
Commit message (Collapse)AuthorAgeFilesLines
* Update rustfmt to the 2024 style edition (#35764)Simon Wülker2025-03-0316-18/+18
| | | | | | | | | | | | | * 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-2016-48/+32
| | | 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: Limit public exports. (#34915)Josh Matthews2025-01-1017-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-1116-34/+52
| | | | | * strict imports formatting * Reformat all imports
* Implement EXT_frag_depthAlexandrov Sergey2020-05-112-0/+63
|
* webgl: Fix tidyMátyás Mustoha2020-04-301-4/+6
|
* webgl: Fix support for float/half-float texture formats.Josh Matthews2020-04-303-19/+17
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-2015-50/+6
|
* webgl: Always convert float/half-float-based types to internal texture types.Josh Matthews2019-10-292-26/+18
|
* Make GL/GLES decisions based on the API in use.Josh Matthews2019-07-123-6/+6
|
* Add initial support for WebGL compressed texturesMátyás Mustoha2019-05-213-0/+146
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-2811-11/+11
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-1914-14/+14
|
* Reorder importsPyfisch2018-11-0614-32/+40
|
* Format remaining filesPyfisch2018-11-062-10/+12
|
* `cargo fix --edition`Simon Sapin2018-11-0614-62/+62
|
* Implement WEBGL_color_buffer_float and EXT_color_buffer_half_float (fixes ↵Josh Matthews2018-11-055-8/+102
| | | | #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-1911-53/+93
|
* 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-021-97/+7
|/ | | | 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-082-0/+93
|
* 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
|
* Implement EXT_blend_minmaxAnthony Ramine2018-06-222-0/+51
|
* Properly enable EXT_shader_texture_lodAnthony Ramine2018-06-221-1/+5
|
* Implement checks for vertex attribs enabled as arrays without a bound bufferAnthony Ramine2018-06-201-12/+12
|
* Don't check for GL_OES_element_index_unit with desktop GL (fixes #20921)Anthony Ramine2018-06-121-1/+5
|
* Implement EXT_texture_filter_anisotropicAnthony Ramine2018-06-062-0/+55
|
* Implement EXT_shader_texture_lodAnthony Ramine2018-06-042-0/+49
|
* Move WebGLVertexArrayObjectOES to script::domAnthony Ramine2018-05-242-86/+0
| | | | It's not a WebGL extension itself, it's just used by one.
* Implement OES_element_index_uint (fixes #20384)Anthony Ramine2018-03-232-0/+51
|
* Add support for filtering WebGL extensions based on WebGL versionImanol Fernandez2017-10-317-8/+35
|
* Replace uses of libcore with libstd in components/scriptSimon Sapin2017-10-161-3/+2
|
* Remove use of unstable box syntax.Simon Sapin2017-10-167-7/+7
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-267-18/+18
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-262-6/+6
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-262-7/+7
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-267-8/+7
|
* Fix texture_float and texture_half_float detection on some GPUsImanol Fernandez2017-09-052-2/+4
|
* Implement WebGL OES_standard_derivatives extension.Imanol Fernandez2017-08-222-0/+51
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-162-9/+8
| | | | | This reverts commit 4d10d39e8fe841c5fe2ac58da2daaa13c10c140e, reversing changes made to ee94e2b7c0bd327abe8f9545b2a1f792f67a2bdd.