diff options
Diffstat (limited to 'components/script/dom/webgpu/gpuqueue.rs')
-rw-r--r-- | components/script/dom/webgpu/gpuqueue.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/webgpu/gpuqueue.rs b/components/script/dom/webgpu/gpuqueue.rs index 179cd741a5c..a20764ef6ad 100644 --- a/components/script/dom/webgpu/gpuqueue.rs +++ b/components/script/dom/webgpu/gpuqueue.rs @@ -49,11 +49,16 @@ impl GPUQueue { } } - pub(crate) fn new(global: &GlobalScope, channel: WebGPU, queue: WebGPUQueue) -> DomRoot<Self> { + pub(crate) fn new( + global: &GlobalScope, + channel: WebGPU, + queue: WebGPUQueue, + can_gc: CanGc, + ) -> DomRoot<Self> { reflect_dom_object( Box::new(GPUQueue::new_inherited(channel, queue)), global, - CanGc::note(), + can_gc, ) } } |