aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-05-26 12:30:28 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-05-26 19:16:46 +0530
commitf4d01835680f3be9e52ebbc4a74f490542759f78 (patch)
tree2e2681124b3c469b221ce526d4ada2ce0e68a469 /components/script/script_thread.rs
parenta3446579ec44a9218e95b09258bf1515073039e9 (diff)
downloadservo-f4d01835680f3be9e52ebbc4a74f490542759f78.tar.gz
servo-f4d01835680f3be9e52ebbc4a74f490542759f78.zip
Make WebGPU resource creation fully async
Remove some garbage code in adapter id checks Prevent panic during shutdown if using WebGPU
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 294027582fa..29c334f3479 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2016,6 +2016,7 @@ impl ScriptThread {
WebGPUMsg::FreeCommandBuffer(id) => self.gpu_id_hub.lock().kill_command_buffer_id(id),
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::Exit => *self.webgpu_port.borrow_mut() = None,
_ => {},
}
}