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/gpuswapchain.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/gpuswapchain.rs')
-rw-r--r-- | components/script/dom/gpuswapchain.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/components/script/dom/gpuswapchain.rs b/components/script/dom/gpuswapchain.rs index 1d50a00f40a..0552eea7564 100644 --- a/components/script/dom/gpuswapchain.rs +++ b/components/script/dom/gpuswapchain.rs @@ -57,10 +57,13 @@ impl GPUSwapChain { impl GPUSwapChain { pub fn destroy(&self, external_id: u64, image_key: webrender_api::ImageKey) { - if let Err(e) = self.channel.0.send(WebGPURequest::DestroySwapChain { - external_id, - image_key, - }) { + if let Err(e) = self.channel.0.send(( + None, + WebGPURequest::DestroySwapChain { + external_id, + image_key, + }, + )) { warn!( "Failed to send DestroySwapChain-ImageKey({:?}) ({})", image_key, e |