diff options
author | newmoneybigbucks <94206753+newmoneybigbucks@users.noreply.github.com> | 2024-07-04 05:03:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 09:03:13 +0000 |
commit | aae66cc33cdf4d4a83de5d17f86c8074e82812f0 (patch) | |
tree | 85caaf2955f53e80dac93b7c1e62ea80376049fa /components/script/dom | |
parent | 42f42b39cc91766cee2192fc9ba91d4ca6ac2101 (diff) | |
download | servo-aae66cc33cdf4d4a83de5d17f86c8074e82812f0.tar.gz servo-aae66cc33cdf4d4a83de5d17f86c8074e82812f0.zip |
Updated all kill_*_id functions defined in indentityhub.rs to free_*_id naming format for issue 32685 (#32688)
Signed-off-by: newmoneybigbucks <newmoneybigbucks@protonmail.com>
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/identityhub.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/components/script/dom/identityhub.rs b/components/script/dom/identityhub.rs index 1f90a317b3c..7b3733c6ab4 100644 --- a/components/script/dom/identityhub.rs +++ b/components/script/dom/identityhub.rs @@ -117,7 +117,7 @@ impl Identities { self.select(backend).devices.process(backend) } - pub fn kill_device_id(&self, id: DeviceId) { + pub fn free_device_id(&self, id: DeviceId) { self.select(id.backend()).devices.free(id); } @@ -129,7 +129,7 @@ impl Identities { ids } - pub fn kill_adapter_id(&self, id: AdapterId) { + pub fn free_adapter_id(&self, id: AdapterId) { self.select(id.backend()).adapters.free(id); } @@ -137,7 +137,7 @@ impl Identities { self.select(backend).buffers.process(backend) } - pub fn kill_buffer_id(&self, id: BufferId) { + pub fn free_buffer_id(&self, id: BufferId) { self.select(id.backend()).buffers.free(id); } @@ -145,7 +145,7 @@ impl Identities { self.select(backend).bind_groups.process(backend) } - pub fn kill_bind_group_id(&self, id: BindGroupId) { + pub fn free_bind_group_id(&self, id: BindGroupId) { self.select(id.backend()).bind_groups.free(id); } @@ -153,7 +153,7 @@ impl Identities { self.select(backend).bind_group_layouts.process(backend) } - pub fn kill_bind_group_layout_id(&self, id: BindGroupLayoutId) { + pub fn free_bind_group_layout_id(&self, id: BindGroupLayoutId) { self.select(id.backend()).bind_group_layouts.free(id); } @@ -161,7 +161,7 @@ impl Identities { self.select(backend).compute_pipelines.process(backend) } - pub fn kill_compute_pipeline_id(&self, id: ComputePipelineId) { + pub fn free_compute_pipeline_id(&self, id: ComputePipelineId) { self.select(id.backend()).compute_pipelines.free(id); } @@ -169,7 +169,7 @@ impl Identities { self.select(backend).pipeline_layouts.process(backend) } - pub fn kill_pipeline_layout_id(&self, id: PipelineLayoutId) { + pub fn free_pipeline_layout_id(&self, id: PipelineLayoutId) { self.select(id.backend()).pipeline_layouts.free(id); } @@ -177,7 +177,7 @@ impl Identities { self.select(backend).shader_modules.process(backend) } - pub fn kill_shader_module_id(&self, id: ShaderModuleId) { + pub fn free_shader_module_id(&self, id: ShaderModuleId) { self.select(id.backend()).shader_modules.free(id); } @@ -185,7 +185,7 @@ impl Identities { self.select(backend).command_encoders.process(backend) } - pub fn kill_command_buffer_id(&self, id: CommandEncoderId) { + pub fn free_command_buffer_id(&self, id: CommandEncoderId) { self.select(id.backend()).command_encoders.free(id); } @@ -193,7 +193,7 @@ impl Identities { self.select(backend).samplers.process(backend) } - pub fn kill_sampler_id(&self, id: SamplerId) { + pub fn free_sampler_id(&self, id: SamplerId) { self.select(id.backend()).samplers.free(id); } @@ -201,7 +201,7 @@ impl Identities { self.select(backend).render_pipelines.process(backend) } - pub fn kill_render_pipeline_id(&self, id: RenderPipelineId) { + pub fn free_render_pipeline_id(&self, id: RenderPipelineId) { self.select(id.backend()).render_pipelines.free(id); } @@ -209,7 +209,7 @@ impl Identities { self.select(backend).textures.process(backend) } - pub fn kill_texture_id(&self, id: TextureId) { + pub fn free_texture_id(&self, id: TextureId) { self.select(id.backend()).textures.free(id); } @@ -217,7 +217,7 @@ impl Identities { self.select(backend).texture_views.process(backend) } - pub fn kill_texture_view_id(&self, id: TextureViewId) { + pub fn free_texture_view_id(&self, id: TextureViewId) { self.select(id.backend()).texture_views.free(id); } @@ -225,7 +225,7 @@ impl Identities { self.select(backend).render_bundles.process(backend) } - pub fn kill_render_bundle_id(&self, id: RenderBundleId) { + pub fn free_render_bundle_id(&self, id: RenderBundleId) { self.select(id.backend()).render_bundles.free(id); } @@ -233,7 +233,7 @@ impl Identities { self.select(backend).compute_passes.process(backend) } - pub fn kill_compute_pass_id(&self, id: ComputePassId) { + pub fn free_compute_pass_id(&self, id: ComputePassId) { self.select(id.backend()).compute_passes.free(id); } } |