aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/identityhub.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some clippy warnings in components/script and components/devtools (#33689)komuhangi2024-10-071-6/+0
| | | Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
* fix default implementation warning in components\script\dom\identityhub.rs ↵Adavize Promise2024-10-071-0/+6
| | | | | (#33686) Signed-off-by: PS Adavize <siyakapromise@gmail.com>
* chore: Update wgpu (#33506)Samson2024-09-211-120/+53
| | | | | | | | | | | | | | | | | | | | | | | | | * Update wgpu Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * use all backends at runtime Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * clean up some adapter stuff Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Update expectations Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * flakes Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* separate Queue&Device Id (#32966)Samson2024-08-081-3/+14
| | | Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* webgpu: Update wgpu and revamp RenderPass (#32665)Samson2024-07-041-1/+11
| | | | | | | | | | | | | | | | | | | | | * Update wgpu and revamp RenderPass * Set good expectations * Set one bad expectation * send_render_command * small fixups * docs * doc * Put RenderPass inside PassState * Use Pass enum for ComputePass too * fix docs
* Updated all kill_*_id functions defined in indentityhub.rs to free_*_id ↵newmoneybigbucks2024-07-041-15/+15
| | | | | naming format for issue 32685 (#32688) Signed-off-by: newmoneybigbucks <newmoneybigbucks@protonmail.com>
* webgpu: Remove mutex around Identities (#32682)派卡 (pi-cla)2024-07-031-42/+42
|
* webgpu: Update wgpu and revamp computepass (#32575)Samson2024-06-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not wait on drop, but rather wake poller thread * Update wgpu and render stuff * Set some good expectations * Update wgpu again * handle IPC error as warning * More good expectations * Some more expectations CTS does not match the spec: https://github.com/gpuweb/cts/issues/3806 * This expectations are due to other changes in servo also happening on main * Explain error_command_encoders and remove RefCell around it * fixup * store validness of passes * More good expectations * More docs * this assert is wrong * This is even more right per CTS/spec Only Command encoder state errors are allowed here, but wgpu does not exposes them. * More good expectations * One bad expectation * Fix my english
* webgpu: Enable gles support (#32452)Hieu Do2024-06-091-0/+8
|
* webgpu: Refactor webgpu crate (#32255)Samson2024-05-081-3/+3
| | | | | | | * wgpu(_core) -> wgc * Refactor webgpu crate split lib.rs into multiple modules
* Fix some clippy warnings in `components/gfx` and `components/script` (#32215)Pi-Cla2024-05-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clippy: Squish warnings and errors in gfx warning: redundant closure (gfx/font.rs:415:18) warning: useless conversion to the same type (gfx/font.rs:534:9) warning: the following explicit lifetimes could be elided: 'a (gfx/font.rs:619:16) error: this loop never actually loops (gfx/font_cache_thread.rs:112:9) warning: this expression creates a reference which is immediately dereferenced by the compiler (gfx/font_cache_thread.rs:229:51) warning: redundant closure (gfx/font_cache_thread.rs:551:18) 3 instances of: warning: casting integer literal to `f64` is unnecessary (gfx/platform/freetype/font_list.rs:271-273) * clippy: methods called `from_*` usually take no `self` It reports that by standard convention, from_* methods should not take any `&self` parameter * clippy: you should consider adding a `Default` implementation It reports that public types with a pub fn new() -> Self should have a Default implementation since they can be constructed without arguments * clippy: casting to the same type is unnecessary (`f32` -> `f32`) * clippy: use of `unwrap_or_else` to construct default value * clippy: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` * clippy: manual `!RangeInclusive::contains` implementation contains expresses the intent better and has less failure modes (such as fencepost errors or using || instead of &&) * clippy: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` * clippy: Fix some new warnings warning: this `if` statement can be collapsed (gfx/font.rs:468:130) warning: this lifetime isn't used in the impl (gfx/platform/freetype/font.rs:341:6) warning: field assignment outside of initializer for an instance created with Default::default() (compositor.rs:881:17)
* webgpu: Update wgpu to 0.19 (#31995)Samson2024-04-261-37/+67
| | | | | | | | | | | * Update wgpu to https://github.com/gfx-rs/wgpu/commit/32e70bc1635905c508d408eb1cf22b2aa062ffe1 (0.19) * Update expect only good * reexpect * remove dbg stuff * Remove all occurrences of dx11_hub
* Fixed some clippy warning by adding default implementations (#31989)komuhangi2024-04-041-38/+2
| | | | | | | | | | | * Fixed some clippy warning by adding default implementations * Updated PR that adds default implementation of structs * Clean up and extend `Default` implementations --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-7/+5
| | | | | * strict imports formatting * Reformat all imports
* Update wgpu to 0.17 (#30147)Samson2023-08-211-1/+1
|
* Update rustc.Josh Matthews2021-12-021-2/+2
|
* Implement GPURenderBundleEncoder and GPURenderBundleKunal Mohan2020-07-241-2/+12
|
* Implement GPUTexture and GPUTextureViewKunal Mohan2020-06-011-1/+22
|
* Implement GPURenderPipelineKunal Mohan2020-05-301-1/+11
| | | | Add webidl for GPURenderPipeline and implement GPUDevice.createRenderPipeline()
* Add GPUSampler to WebGPU implementationKunal Mohan2020-05-261-61/+33
| | | | Add dom_struct and webidl for GPUSampler, implement GPUDevice.createSampler() method.
* Implement client-side logic for WebGPU id recyclingKunal Mohan2020-05-221-1/+37
|
* Upgrade wgpu-core version to 0.5.0 and implement server-side logic for wgpu ↵Kunal Mohan2020-05-211-1/+1
| | | | | | id recycling Remove current implementation of MapReadAsync
* Initial implementation of GPUCommandEncoderZakor Gyula2020-02-111-2/+12
| | | | | | Added WebIDL bindings for `GPUCommandEncoder`, `GPUCommandBuffer`, `GPUComputePassEncoder`, `GPUProgrammablePassEncoder`. Implemented the `beginComputePass`, `copyBufferToBuffer` and `finish` functions of `GPUCommandEncoder`. Implemented the `createCommandEncoder` function of `GPUDevice`.
* Initial implementation of GPUComputePipelineIstvan Miklos2020-02-111-2/+12
| | | | | Added WebIDL bindings for `GPUComputePipeline`. Implemented the `createComputePipeline` function of `GPUDevice`.
* Initial implementation of GPUShaderModuleIstvan Miklos2020-02-111-12/+15
| | | | | Added WebIDL bindings for `GPUShaderModule`. Implemented the `createShaderModule` function of `GPUDevice`.
* Auto merge of #25637 - szeged:wgpu_crete_bind_group, r=jdmbors-servo2020-01-301-1/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of GPUBindGroup for WebGPU Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice` Renamed `GPUBindGroupBinding` to `GPUBindGroupBindings` and `GPUBufferBinding` to `GPUBufferBindings` in the WebIDL, because these names are already occupied. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes addresses a part of #24706 cc @kvark @jdm @zakorgy <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Initial implementation of GPUBindGroup for WebGPUIstvan Miklos2020-01-301-1/+21
| | | | | | | | | | Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice`
* | Remove code duplication from IdentityHubIstvan Miklos2020-01-301-44/+18
|/ | | | Outsourced the backend selection to a function.
* Initial implementation of GPUPipelineLayout for WebGPUIstvan Miklos2020-01-211-1/+21
| | | | | Added WebIDL bindings for `GPUPipelineLayout`. Implemented the createPipelineLayout function of `GPUDevice`.
* Initial implementation of GPUBindGroupLayout for WebGPUIstvan Miklos2020-01-161-2/+22
| | | | | | Added WebIDL bindings for `GPUBindGroupLayout`, `GPUBindGroupLayoutDescriptor`, `GPUBindingType`, `GPUShaderStage` and `GPUBindGroupLayoutBinding` (Note: The servo's codegen doesn't like the name, because its already occupied). Implemented the `createBindGroupLayout` function of `GPUDevice`.
* Initial implementation of GPUBuffer for WebGPUIstvan Miklos2019-12-171-1/+21
| | | | | Added WebIDL bindings for GPUBuffer, GPUBufferDescriptor, GPUBufferUsage Implemented the `createBuffer` and `createBufferMapped` functions of GPUDevice
* Replace wgpu-native with wgpu-coreZakor Gyula2019-12-061-21/+72
|
* Initial implementation of GPUDevice for WebGPUIstvan Miklos2019-12-051-0/+4
| | | | | Added the WebIDL bindigs for GPUDevice, GPUObjectDescriptorBase, GPUDeviceDescriptor, GPUObjectBase Implemented the `requestDevice` function of `GPUAdapter`
* Add WebGPU identity managementIstvan Miklos2019-11-281-0/+47
Issue: https://github.com/servo/servo/issues/24706#issuecomment-557891841