aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpurenderbundleencoder.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/gpurenderbundleencoder.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/gpurenderbundleencoder.rs')
-rw-r--r--components/script/dom/gpurenderbundleencoder.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/components/script/dom/gpurenderbundleencoder.rs b/components/script/dom/gpurenderbundleencoder.rs
index d227ad34ff7..7557171a9f5 100644
--- a/components/script/dom/gpurenderbundleencoder.rs
+++ b/components/script/dom/gpurenderbundleencoder.rs
@@ -195,13 +195,15 @@ impl GPURenderBundleEncoderMethods for GPURenderBundleEncoder {
self.channel
.0
- .send(WebGPURequest::RenderBundleEncoderFinish {
- render_bundle_encoder: encoder,
- descriptor: desc,
- render_bundle_id,
- device_id: self.device.id().0,
- scope_id: self.device.use_current_scope(),
- })
+ .send((
+ self.device.use_current_scope(),
+ WebGPURequest::RenderBundleEncoderFinish {
+ render_bundle_encoder: encoder,
+ descriptor: desc,
+ render_bundle_id,
+ device_id: self.device.id().0,
+ },
+ ))
.expect("Failed to send RenderBundleEncoderFinish");
let render_bundle = WebGPURenderBundle(render_bundle_id);