diff options
Diffstat (limited to 'components/script/dom/webgpu/gpubuffer.rs')
-rw-r--r-- | components/script/dom/webgpu/gpubuffer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpubuffer.rs b/components/script/dom/webgpu/gpubuffer.rs index 9be9225701d..6f61b48a3a7 100644 --- a/components/script/dom/webgpu/gpubuffer.rs +++ b/components/script/dom/webgpu/gpubuffer.rs @@ -116,13 +116,14 @@ impl GPUBuffer { usage: GPUFlagsConstant, mapping: Option<ActiveBufferMapping>, label: USVString, + can_gc: CanGc, ) -> DomRoot<Self> { reflect_dom_object( Box::new(GPUBuffer::new_inherited( channel, buffer, device, size, usage, mapping, label, )), global, - CanGc::note(), + can_gc, ) } } @@ -174,6 +175,7 @@ impl GPUBuffer { descriptor.usage, mapping, descriptor.parent.label.clone(), + CanGc::note(), )) } } |