mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
CanGc fixes in components/script/dom (#33843)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
1e39787573
commit
46d6c0c883
9 changed files with 21 additions and 24 deletions
|
@ -597,6 +597,7 @@ impl AsyncWGPUListener for GPUDevice {
|
|||
&self.global(),
|
||||
msg.into(),
|
||||
GPUPipelineErrorReason::Validation,
|
||||
can_gc,
|
||||
))
|
||||
},
|
||||
Err(webgpu::Error::OutOfMemory(msg) | webgpu::Error::Internal(msg)) => promise
|
||||
|
@ -604,6 +605,7 @@ impl AsyncWGPUListener for GPUDevice {
|
|||
&self.global(),
|
||||
msg.into(),
|
||||
GPUPipelineErrorReason::Internal,
|
||||
can_gc,
|
||||
)),
|
||||
},
|
||||
WebGPUResponse::RenderPipeline(result) => match result {
|
||||
|
@ -618,6 +620,7 @@ impl AsyncWGPUListener for GPUDevice {
|
|||
&self.global(),
|
||||
msg.into(),
|
||||
GPUPipelineErrorReason::Validation,
|
||||
can_gc,
|
||||
))
|
||||
},
|
||||
Err(webgpu::Error::OutOfMemory(msg) | webgpu::Error::Internal(msg)) => promise
|
||||
|
@ -625,6 +628,7 @@ impl AsyncWGPUListener for GPUDevice {
|
|||
&self.global(),
|
||||
msg.into(),
|
||||
GPUPipelineErrorReason::Internal,
|
||||
can_gc,
|
||||
)),
|
||||
},
|
||||
_ => unreachable!("Wrong response received on AsyncWGPUListener for GPUDevice"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue