diff options
Diffstat (limited to 'components/script/dom/gpushadermodule.rs')
-rw-r--r-- | components/script/dom/gpushadermodule.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/gpushadermodule.rs b/components/script/dom/gpushadermodule.rs index a8b62fd96ea..eb6aa9deb63 100644 --- a/components/script/dom/gpushadermodule.rs +++ b/components/script/dom/gpushadermodule.rs @@ -22,6 +22,7 @@ use crate::dom::bindings::trace::RootedTraceableBox; use crate::dom::globalscope::GlobalScope; use crate::dom::gpu::response_async; use crate::realms::InRealm; +use crate::script_runtime::CanGc; #[dom_struct] pub struct GPUShaderModule { @@ -125,10 +126,10 @@ impl GPUShaderModuleMethods for GPUShaderModule { } impl AsyncWGPUListener for GPUShaderModule { - fn handle_response(&self, response: WebGPUResponse, promise: &Rc<Promise>) { + fn handle_response(&self, response: WebGPUResponse, promise: &Rc<Promise>, can_gc: CanGc) { match response { WebGPUResponse::CompilationInfo(info) => { - let info = GPUCompilationInfo::from(&self.global(), info); + let info = GPUCompilationInfo::from(&self.global(), info, can_gc); promise.resolve_native(&info); }, _ => unreachable!("Wrong response received on AsyncWGPUListener for GPUShaderModule"), |