aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpucommandbuffer.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-05-22 18:47:35 +0200
committerGitHub <noreply@github.com>2024-05-22 16:47:35 +0000
commit794110ebe58ad72d809291e9feb3f2cc92819941 (patch)
tree9c01451fa022f433fa8a305d58c2a79da747e838 /components/script/dom/gpucommandbuffer.rs
parent9f32809671c8c8e79d59c95194dcc466452299fc (diff)
downloadservo-794110ebe58ad72d809291e9feb3f2cc92819941.tar.gz
servo-794110ebe58ad72d809291e9feb3f2cc92819941.zip
webgpu: Move errorscopes to WGPU thread (#32304)
* Prepare errorscopes logic in wgpu_thread * remove scope_id from ipc * new GPUErrors per spec * remove cotent timeline error_scope * fixup poperrorscope types * device_scope -> gpu_error and nice errors * Handle errors detection more elegantly * good expectations * new expectations * Make error_scope.errors Vec as per spec
Diffstat (limited to 'components/script/dom/gpucommandbuffer.rs')
-rw-r--r--components/script/dom/gpucommandbuffer.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/gpucommandbuffer.rs b/components/script/dom/gpucommandbuffer.rs
index 0b78559e54e..e50c350f18c 100644
--- a/components/script/dom/gpucommandbuffer.rs
+++ b/components/script/dom/gpucommandbuffer.rs
@@ -72,10 +72,11 @@ impl GPUCommandBuffer {
impl Drop for GPUCommandBuffer {
fn drop(&mut self) {
- if let Err(e) = self.channel.0.send((
- None,
- WebGPURequest::DropCommandBuffer(self.command_buffer.0),
- )) {
+ if let Err(e) = self
+ .channel
+ .0
+ .send(WebGPURequest::DropCommandBuffer(self.command_buffer.0))
+ {
warn!(
"Failed to send DropCommandBuffer({:?}) ({})",
self.command_buffer.0, e