aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuadapter.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-08-03 01:45:29 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-08-03 01:45:29 +0530
commitce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27 (patch)
tree4633a1ec77c6bad1c6fe6f0e46ebd9e5bb783aee /components/script/dom/gpuadapter.rs
parent8eff1d74de989f837eb54e80fb7296a98ef3220b (diff)
downloadservo-ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27.tar.gz
servo-ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27.zip
Change ErrorScopeId type to NonZeroU64
And extract it from WebGPURequest
Diffstat (limited to 'components/script/dom/gpuadapter.rs')
-rw-r--r--components/script/dom/gpuadapter.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/components/script/dom/gpuadapter.rs b/components/script/dom/gpuadapter.rs
index ca4eaacd2ae..57344185a57 100644
--- a/components/script/dom/gpuadapter.rs
+++ b/components/script/dom/gpuadapter.rs
@@ -97,14 +97,17 @@ impl GPUAdapterMethods for GPUAdapter {
if self
.channel
.0
- .send(WebGPURequest::RequestDevice {
- sender,
- adapter_id: self.adapter,
- descriptor: desc,
- device_id: id,
- pipeline_id,
- label: descriptor.parent.label.as_ref().map(|s| s.to_string()),
- })
+ .send((
+ None,
+ WebGPURequest::RequestDevice {
+ sender,
+ adapter_id: self.adapter,
+ descriptor: desc,
+ device_id: id,
+ pipeline_id,
+ label: descriptor.parent.label.as_ref().map(|s| s.to_string()),
+ },
+ ))
.is_err()
{
promise.reject_error(Error::Operation);