aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 02685506151..c07c43b04f2 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2069,6 +2069,13 @@ impl ScriptThread {
let global = self.documents.borrow().find_global(pipeline_id).unwrap();
global.handle_wgpu_msg(device, scope_id, result);
},
+ WebGPUMsg::CleanDevice {
+ pipeline_id,
+ device,
+ } => {
+ let global = self.documents.borrow().find_global(pipeline_id).unwrap();
+ global.remove_gpu_device(device);
+ },
_ => {},
}
}