aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gputexture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gputexture.rs')
-rw-r--r--components/script/dom/gputexture.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/components/script/dom/gputexture.rs b/components/script/dom/gputexture.rs
index e9c44858f94..64b56e82607 100644
--- a/components/script/dom/gputexture.rs
+++ b/components/script/dom/gputexture.rs
@@ -167,13 +167,15 @@ impl GPUTextureMethods for GPUTexture {
self.channel
.0
- .send(WebGPURequest::CreateTextureView {
- texture_id: self.texture.0,
- texture_view_id,
- device_id: self.device.id().0,
- descriptor: desc,
+ .send((
scope_id,
- })
+ WebGPURequest::CreateTextureView {
+ texture_id: self.texture.0,
+ texture_view_id,
+ device_id: self.device.id().0,
+ descriptor: desc,
+ },
+ ))
.expect("Failed to create WebGPU texture view");
let texture_view = WebGPUTextureView(texture_view_id);
@@ -191,7 +193,7 @@ impl GPUTextureMethods for GPUTexture {
if let Err(e) = self
.channel
.0
- .send(WebGPURequest::DestroyTexture(self.texture.0))
+ .send((None, WebGPURequest::DestroyTexture(self.texture.0)))
{
warn!(
"Failed to send WebGPURequest::DestroyTexture({:?}) ({})",