diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-07 14:37:42 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-16 23:21:09 +0530 |
commit | 0dc1514d573260e736e3587f352a9663bd6be93b (patch) | |
tree | 859186196c4607311b36688496cc55cafd37ec16 /components/script/script_thread.rs | |
parent | 809b4ae2eefdbc118efc911b1d14d9a5a04eff79 (diff) | |
download | servo-0dc1514d573260e736e3587f352a9663bd6be93b.tar.gz servo-0dc1514d573260e736e3587f352a9663bd6be93b.zip |
Implement Async Error reporting for WebGPU and update wgpu-core
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index dda8699b9f2..02685506151 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2060,6 +2060,15 @@ impl ScriptThread { 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, + WebGPUMsg::WebGPUOpResult { + device, + scope_id, + pipeline_id, + result, + } => { + let global = self.documents.borrow().find_global(pipeline_id).unwrap(); + global.handle_wgpu_msg(device, scope_id, result); + }, _ => {}, } } |