diff options
author | Auguste Baum <52001167+augustebaum@users.noreply.github.com> | 2025-02-23 01:34:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-23 00:34:51 +0000 |
commit | b0b0289014b707505a6921152b9ecba75afa207f (patch) | |
tree | f2ffba650cf28da83904b14e94ba3913967951f2 /components/script/dom/webgpu/gpusampler.rs | |
parent | 02199520f2b611c9b5ab7b34a2372689cb4c22cd (diff) | |
download | servo-b0b0289014b707505a6921152b9ecba75afa207f.tar.gz servo-b0b0289014b707505a6921152b9ecba75afa207f.zip |
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
Diffstat (limited to 'components/script/dom/webgpu/gpusampler.rs')
-rw-r--r-- | components/script/dom/webgpu/gpusampler.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gpusampler.rs b/components/script/dom/webgpu/gpusampler.rs index 6afe38feb7d..cd973c45144 100644 --- a/components/script/dom/webgpu/gpusampler.rs +++ b/components/script/dom/webgpu/gpusampler.rs @@ -82,6 +82,7 @@ impl GPUSampler { pub(crate) fn create( device: &GPUDevice, descriptor: &GPUSamplerDescriptor, + can_gc: CanGc, ) -> DomRoot<GPUSampler> { let sampler_id = device.global().wgpu_id_hub().create_sampler_id(); let compare_enable = descriptor.compare.is_some(); @@ -121,7 +122,7 @@ impl GPUSampler { compare_enable, sampler, descriptor.parent.label.clone(), - CanGc::note(), + can_gc, ) } } |