aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-05-29 12:02:05 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-06-01 23:28:12 +0530
commitaf95d922315974dcfae5659b503a672b19026fdb (patch)
tree312c711c1d90ac33ed538cc1cc5e240bcf70273e /components/script/script_thread.rs
parentd9db350df528628b1f7f2f1da711fc2da790ec49 (diff)
downloadservo-af95d922315974dcfae5659b503a672b19026fdb.tar.gz
servo-af95d922315974dcfae5659b503a672b19026fdb.zip
Implement GPUTexture and GPUTextureView
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 967b23e5de4..b7c7da8ced1 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1956,6 +1956,8 @@ impl ScriptThread {
WebGPUMsg::FreeSampler(id) => self.gpu_id_hub.lock().kill_sampler_id(id),
WebGPUMsg::FreeShaderModule(id) => self.gpu_id_hub.lock().kill_shader_module_id(id),
WebGPUMsg::FreeRenderPipeline(id) => self.gpu_id_hub.lock().kill_render_pipeline_id(id),
+ WebGPUMsg::FreeTexture(id) => self.gpu_id_hub.lock().kill_texture_id(id),
+ WebGPUMsg::FreeTextureView(id) => self.gpu_id_hub.lock().kill_texture_view_id(id),
WebGPUMsg::Exit => *self.webgpu_port.borrow_mut() = None,
_ => {},
}