aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglshader.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippy: Fix redundant field names warnings (#31793)Oluwatobi Sofela2024-03-201-1/+1
|
* Bump mozangle to 0.5.0 (#30546)Samson2023-12-081-155/+32
| | | | | | | | | * Update mozangle to version 0.5 * Update webglshader CompileOptions and BuiltInResources * Update webglshader.rs * Update webglshader.rs
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-8/+11
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement EXT_frag_depthAlexandrov Sergey2020-05-111-0/+2
|
* Replaced failible boolean with an enumTobias Tschinkowitz2020-04-231-7/+6
|
* Update surfman to 0.2 and remove glutinAlan Jeffrey2020-04-171-2/+43
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+0
|
* webgl: Set more ANGLE shader translation properties for WebGL 2.Josh Matthews2020-01-071-4/+131
|
* Don't panic if WebGL thread can't be reached during finalization.Josh Matthews2019-07-291-5/+9
|
* Remove uses of mem::uninitializedSimon Sapin2019-07-171-2/+2
|
* Make GL/GLES decisions based on the API in use.Josh Matthews2019-07-121-3/+4
|
* Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-2/+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-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-11/+11
|
* Format script componentchansuke2018-09-191-15/+10
|
* Simplify gl.getShaderParameter() (fixes #20562)Anthony Ramine2018-07-311-0/+4
| | | | | | The expectation change is due to the shader now using its DOM-side compile status. It is actually a bug for the shader to think it actually compiled successfully, but at least it does so consistently now.
* Fix program and shader lifetime cycleAnthony Ramine2018-07-311-9/+8
|
* Remove an obsolete todo in gl.compileShader()Anthony Ramine2018-07-311-5/+0
| | | | We get the uniform data etc at link-time.
* Store a reference to the WebGLRenderingContext in WebGLObjectAnthony Ramine2018-07-241-31/+30
|
* Fix gl.getShaderSource and gl.getShaderInfoLogAnthony Ramine2018-07-081-13/+9
| | | | | It only returns null if there was an error, and the only error isn't implemented yet.
* Pass more GL limits to the ANGLE shader compilerAnthony Ramine2018-07-081-4/+16
|
* Properly enable EXT_shader_texture_lodAnthony Ramine2018-06-221-0/+2
|
* Update to gleam 0.5Anthony Ramine2018-05-051-12/+2
|
* Implement missing WebGLShader checksAnthony Ramine2018-03-241-65/+78
| | | | | Methods compileShader and getShaderParameter should emit an error when the shader has been deleted.
* Switch from servo/angle to the mozangle crateSimon Sapin2018-03-121-2/+2
| | | | https://github.com/servo/mozangle
* Use specific assertion for DOM webgl shaderCYBAI2018-01-261-1/+1
|
* Set the correct Angle GLSL output when using WebGL 2Imanol Fernandez2017-11-131-11/+32
|
* Kick off WebGL 2.0 implementationImanol Fernandez2017-10-271-4/+15
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | 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-5/+5
| | | | | | | | 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 dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Implement WebGL OES_standard_derivatives extension.Imanol Fernandez2017-08-221-1/+4
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-14/+11
| | | | | 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-11/+14
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-14/+11
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-4/+4
|
* Fix highp precision in shaders & Implement WebGL::GetShaderPrecisionFormatImanol Fernandez2017-04-211-1/+3
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Expose WebGL-related interfaces only in WindowAnthony Ramine2016-11-301-6/+7
|
* update depsGregory2016-11-221-3/+4
| | | | | | | | | | 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
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-3/+3
|
* Use wrappers for GL IDsAnthony Ramine2016-06-281-9/+14
| | | | 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/+21
|