aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpudevice.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-18 04:06:04 +0530
committerGitHub <noreply@github.com>2024-10-17 22:36:04 +0000
commitf826698d6e5483f18d13a9f104e0645ee31bb8d9 (patch)
tree56f6765dcb2743afa2682df66429d6b3dbfed3d7 /components/script/dom/gpudevice.rs
parent9c893c7f4def4ffa635587ea85d5e4c3ba6ecac3 (diff)
downloadservo-f826698d6e5483f18d13a9f104e0645ee31bb8d9.tar.gz
servo-f826698d6e5483f18d13a9f104e0645ee31bb8d9.zip
CanGc fixes in components/script/dom (#33891)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r--components/script/dom/gpudevice.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs
index 29e2231b99b..b3aae263d4e 100644
--- a/components/script/dom/gpudevice.rs
+++ b/components/script/dom/gpudevice.rs
@@ -148,10 +148,11 @@ impl GPUDevice {
device: webgpu::WebGPUDevice,
queue: webgpu::WebGPUQueue,
label: String,
+ can_gc: CanGc,
) -> DomRoot<Self> {
let queue = GPUQueue::new(global, channel.clone(), queue);
let limits = GPUSupportedLimits::new(global, limits);
- let features = GPUSupportedFeatures::Constructor(global, None, features).unwrap();
+ let features = GPUSupportedFeatures::Constructor(global, None, features, can_gc).unwrap();
let lost_promise = Promise::new(global);
let device = reflect_dom_object(
Box::new(GPUDevice::new_inherited(