aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippy: Fix redundant field names warnings (#31793)Oluwatobi Sofela2024-03-201-1/+1
|
* 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>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-7/+9
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Replaced failible boolean with an enumTobias Tschinkowitz2020-04-231-7/+6
|
* webgl: Fix active uniform block length check.Josh Matthews2020-04-071-1/+1
|
* Add support for DrawRangeElements in WebGL2Istvan2020-03-301-0/+5
| | | | Adds initial support for the WebGL2 `DrawRangeElements` call.
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* Add support for WebGL2 GetFragDataLocationMátyás Mustoha2020-03-091-0/+24
| | | | | | Adds support for the `GetFragDataLocation` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.7
* Add initial support for WebGL2 uniform buffer functionsMátyás Mustoha2020-01-091-1/+148
| | | | | | | | | | | | | | | Adds initial support for the following WebGL2 calls: - bindBufferBase - bindBufferRange - getUniformIndices - getUniformBlockIndex - getActiveUniforms - getActiveUniformBlockParameter - getActiveUniformBlockName - uniformBlockBinding See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.16
* Add accountable-refcell as optional build time featureKunal Mohan2020-01-081-2/+2
|
* Add Support for WebGL TransormfeedbackIstvan Miklos2019-11-081-0/+16
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.15
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-0/+2
| | | | | | 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>
* Don't panic if WebGL thread can't be reached during finalization.Josh Matthews2019-07-291-5/+9
|
* update link_called when link function called.Christopher Burgos2019-07-231-0/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+3
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-12/+12
|
* Validate GLSL names (fixes #21287)Anthony Ramine2018-09-201-22/+67
|
* Fix the error when calling getProgramInfoLog on a deleted program (#20561)Anthony Ramine2018-09-201-1/+1
|
* Format script componentchansuke2018-09-191-28/+53
|
* Fix program and shader lifetime cycleAnthony Ramine2018-07-311-28/+51
|
* Remove an obsolete todo in gl.attachShader()Anthony Ramine2018-07-311-2/+0
| | | | Attaching the same shader twice should indeed emit an InvalidOperation error.
* Store a reference to the WebGLRenderingContext in WebGLObjectAnthony Ramine2018-07-241-33/+38
|
* Invalidate all WebGLUniformLocation values on program relinkAnthony Ramine2018-07-191-5/+17
|
* Correctly reset active uniforms on linkAnthony Ramine2018-07-191-1/+2
|
* Use active uniforms data to implement gl.uniform* checksAnthony Ramine2018-07-171-6/+42
|
* Move ANGLE name shenanigans to WebGL threadAnthony Ramine2018-07-161-8/+4
|
* Store active uniforms on the DOM sideAnthony Ramine2018-07-161-25/+40
|
* Implement attribute aliasing check (fixes #21136)Anthony Ramine2018-07-091-0/+21
|
* Make gl.useProgram(null) do the right thingAnthony Ramine2018-07-051-13/+0
|
* Store active attribs in DOM and optimise active attributes APIsAnthony Ramine2018-07-051-65/+34
|
* Update to gleam 0.5Anthony Ramine2018-05-051-8/+1
|
* Do not emit a WebGL error for "gl_" prefixed names in gl.getAttribLocationAnthony Ramine2018-04-091-1/+1
|
* Fix filtering of reserved WebGL names in gl.getAttribLocationAnthony Ramine2018-04-091-1/+2
|
* Implement WebGLRenderingContextBase.getAttachedShadersAnthony Ramine2018-03-241-0/+13
|
* Switch from servo/angle to the mozangle crateSimon Sapin2018-03-121-7/+57
| | | | https://github.com/servo/mozangle
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | 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-261-5/+5
| | | | | | | 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 MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-29/+27
| | | | | This reverts commit 4d10d39e8fe841c5fe2ac58da2daaa13c10c140e, reversing changes made to ee94e2b7c0bd327abe8f9545b2a1f792f67a2bdd.
* Revert "Auto merge of #17891 - MortimerGoro:webgl_move, r=glennw,emilio"Emilio Cobos Álvarez2017-08-161-27/+29
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-29/+27
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-10/+9
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.