mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue