diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-03 01:45:29 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-03 01:45:29 +0530 |
commit | ce6e09a3aa3b9ef20dcc8f1ff5712f7a2691aa27 (patch) | |
tree | 4633a1ec77c6bad1c6fe6f0e46ebd9e5bb783aee /components/script/dom/gpuadapter.rs | |
parent | 8eff1d74de989f837eb54e80fb7296a98ef3220b (diff) | |
download | servo-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.rs | 19 |
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); |