aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpucanvascontext.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-04-04 13:52:58 +0200
committerGitHub <noreply@github.com>2025-04-04 11:52:58 +0000
commit49d48b897ae0c310a380a498baf8e38518172e3e (patch)
treebc1018411158f8c7e165e42551a23f17617c10ff /components/script/dom/webgpu/gpucanvascontext.rs
parent1f928252e37fecc251e74bf23d7105d285b8a906 (diff)
downloadservo-49d48b897ae0c310a380a498baf8e38518172e3e.tar.gz
servo-49d48b897ae0c310a380a498baf8e38518172e3e.zip
script: Remove dependency on `webgpu` (#36332)
After #36320, `script` only depends on `webgpu` for its type aliases to `wgpu_core` and `wgpu_types`. This change removes the dependency on `webgpu` in favor of depending directly on the upstream crates. This makes it so that you can change `webgpu` without recompiling `script`. Testing: This change is covered by existing WebGPU tests and is mainly just changing the way dependencies are accessed. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/webgpu/gpucanvascontext.rs')
-rw-r--r--components/script/dom/webgpu/gpucanvascontext.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpucanvascontext.rs b/components/script/dom/webgpu/gpucanvascontext.rs
index 60bce21022d..595b54c58d7 100644
--- a/components/script/dom/webgpu/gpucanvascontext.rs
+++ b/components/script/dom/webgpu/gpucanvascontext.rs
@@ -9,13 +9,13 @@ use arrayvec::ArrayVec;
use dom_struct::dom_struct;
use ipc_channel::ipc::{self, IpcSharedMemory};
use script_layout_interface::HTMLCanvasDataSource;
-use webgpu::wgc::id;
use webgpu_traits::{
ContextConfiguration, PRESENTATION_BUFFER_COUNT, WebGPU, WebGPUContextId, WebGPURequest,
WebGPUTexture,
};
use webrender_api::ImageKey;
use webrender_api::units::DeviceIntSize;
+use wgpu_core::id;
use super::gpuconvert::convert_texture_descriptor;
use super::gputexture::GPUTexture;