aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement EXT_blend_minmaxAnthony Ramine2018-06-223-1/+66
|
* Properly enable EXT_shader_texture_lodAnthony Ramine2018-06-222-1/+6
|
* 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-063-7/+91
|
* 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.
* Add OESElementIndexUint to WebGLExtensions::register_all_extensionsAnthony Ramine2018-05-241-0/+1
|
* Implement OES_element_index_uint (fixes #20384)Anthony Ramine2018-03-233-4/+67
|
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-222-6/+8
|
* Add support for filtering WebGL extensions based on WebGL versionImanol Fernandez2017-10-3111-23/+85
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-182-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Replace uses of libcore with libstd in components/scriptSimon Sapin2017-10-162-4/+3
|
* Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-162-8/+7
|
* Remove use of unstable box syntax.Simon Sapin2017-10-168-8/+8
| | | | | | | | | | | | | | | | | | | | 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-2610-24/+24
| | | | | | | 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-262-8/+8
| | | | | | | | 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-263-10/+10
|