diff options
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); + }, _ => {}, } } |