aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Expose WebGL-related interfaces only in WindowAnthony Ramine2016-11-301-7/+7
|
* update depsGregory2016-11-221-8/+9
| | | | | | | | | | switch to using webrender_traits::ImageData update use of webrender_traits::StackingContext in layout use webrender_traits::channel::msg_channel in webgl ipc fix use of resource_override_path in components/servo/lib
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-2/+2
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-2/+2
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-5/+5
|
* Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, ↵Imanol Fernandez2016-10-031-4/+66
| | | | getProgramInfoLog, disableVertexAttribArray}, r=emilio
* webgl: Add isProgram() support.Eric Anholt2016-08-281-0/+4
| | | | | | | There's one failure still, where a deleted program should still be considered to be a program until it's unbound. However, I recently made it so that we unbind at delete time, and we may need to partially back that change out.
* Use wrappers for GL IDsAnthony Ramine2016-06-281-7/+15
| | | | See https://github.com/servo/webrender_traits/pull/62.
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement IsShader fn and IsTexture fn for WebGLRenderingContextDaniel2016-05-091-0/+10
|
* Auto merge of #10443 - emilio:webgl-teximage2d-overload, r=jdmbors-servo2016-04-221-6/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Implement the pending texImage2D overload, and add more validation This is a large-ish refactor of the Texture2D code, but it should be easier to read and of course more correct. I tried to annotate every error condition with a spec paragraph. I made just a reftest to ensure this works as intended, since I expect #10373 to land pretty soon. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10443) <!-- Reviewable:end -->
| * webgl: Refactor WebGLProgram::linkEmilio Cobos Álvarez2016-04-191-6/+16
| | | | | | | | | | This makes it more correct, since we don't blindly send the Link command. It's not observable though.
* | Prevent use of reserved names in BindAttribLocationDavid Zbarsky2016-04-171-1/+5
|/
* Implement GetActiveAttribDavid Zbarsky2016-04-111-0/+11
|
* Implement WebGLRenderingContext.getActiveUniform()Saurav Sachidanand2016-04-061-1/+12
|