diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-26 12:30:28 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-26 19:16:46 +0530 |
commit | f4d01835680f3be9e52ebbc4a74f490542759f78 (patch) | |
tree | 2e2681124b3c469b221ce526d4ada2ce0e68a469 /components/script/script_thread.rs | |
parent | a3446579ec44a9218e95b09258bf1515073039e9 (diff) | |
download | servo-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.rs | 1 |
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, _ => {}, } } |