aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gpusampler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gpusampler.rs')
-rw-r--r--components/script/dom/webgpu/gpusampler.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/webgpu/gpusampler.rs b/components/script/dom/webgpu/gpusampler.rs
index 98ec5a873ff..ec3562d0e52 100644
--- a/components/script/dom/webgpu/gpusampler.rs
+++ b/components/script/dom/webgpu/gpusampler.rs
@@ -16,6 +16,7 @@ use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::USVString;
use crate::dom::globalscope::GlobalScope;
use crate::dom::webgpu::gpudevice::GPUDevice;
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct GPUSampler {
@@ -66,6 +67,7 @@ impl GPUSampler {
label,
)),
global,
+ CanGc::note(),
)
}
}