mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
CanGc fixes in components/script/dom (#33891)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
9c893c7f4d
commit
f826698d6e
13 changed files with 49 additions and 25 deletions
|
@ -143,7 +143,7 @@ impl GPUMethods for GPU {
|
|||
}
|
||||
|
||||
impl AsyncWGPUListener for GPU {
|
||||
fn handle_response(&self, response: WebGPUResponse, promise: &Rc<Promise>, _can_gc: CanGc) {
|
||||
fn handle_response(&self, response: WebGPUResponse, promise: &Rc<Promise>, can_gc: CanGc) {
|
||||
match response {
|
||||
WebGPUResponse::Adapter(Ok(adapter)) => {
|
||||
let adapter = GPUAdapter::new(
|
||||
|
@ -158,6 +158,7 @@ impl AsyncWGPUListener for GPU {
|
|||
adapter.limits,
|
||||
adapter.adapter_info,
|
||||
adapter.adapter_id,
|
||||
can_gc,
|
||||
);
|
||||
promise.resolve_native(&adapter);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue