aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuqueue.rs
diff options
context:
space:
mode:
authorIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-05 11:32:52 +0100
committerIstvan Miklos <istvan.miklos@h-lab.eu>2020-02-27 15:10:24 +0100
commit000a5d543d8780a73ace6477c0c8255b8d7a97f6 (patch)
treef127a5ba0331d1663febec135de757abb30567dc /components/script/dom/gpuqueue.rs
parent0f9b04680a27e7503bb2ebceb41c5abc8d59a294 (diff)
downloadservo-000a5d543d8780a73ace6477c0c8255b8d7a97f6.tar.gz
servo-000a5d543d8780a73ace6477c0c8255b8d7a97f6.zip
Fixing some style related issues in WebGPU.
Changed the Requests/Response from tuples to named struct variants and also sorted in alphabetical order. Replaced the ID generator functions from `globalscope` with a single function, which returns a `RefMut` and can call the appropriate method to generate resource IDs.
Diffstat (limited to 'components/script/dom/gpuqueue.rs')
-rw-r--r--components/script/dom/gpuqueue.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script/dom/gpuqueue.rs b/components/script/dom/gpuqueue.rs
index dfa97402253..c257ec5ef09 100644
--- a/components/script/dom/gpuqueue.rs
+++ b/components/script/dom/gpuqueue.rs
@@ -64,10 +64,13 @@ impl GPUQueueMethods for GPUQueue {
// TODO: Generate error to the ErrorScope
return;
}
- let buffer_ids = command_buffers.iter().map(|cb| cb.id().0).collect();
+ let command_buffers = command_buffers.iter().map(|cb| cb.id().0).collect();
self.channel
.0
- .send(WebGPURequest::Submit(self.queue.0, buffer_ids))
+ .send(WebGPURequest::Submit {
+ queue_id: self.queue.0,
+ command_buffers,
+ })
.unwrap();
}
}