aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gputexture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gputexture.rs')
-rw-r--r--components/script/dom/webgpu/gputexture.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/webgpu/gputexture.rs b/components/script/dom/webgpu/gputexture.rs
index b0472a4c0d7..96307fb4dd9 100644
--- a/components/script/dom/webgpu/gputexture.rs
+++ b/components/script/dom/webgpu/gputexture.rs
@@ -86,6 +86,7 @@ impl GPUTexture {
format: GPUTextureFormat,
texture_usage: u32,
label: USVString,
+ can_gc: CanGc,
) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUTexture::new_inherited(
@@ -101,7 +102,7 @@ impl GPUTexture {
label,
)),
global,
- CanGc::note(),
+ can_gc,
)
}
}
@@ -159,6 +160,7 @@ impl GPUTexture {
descriptor.format,
descriptor.usage,
descriptor.parent.label.clone(),
+ CanGc::note(),
))
}
}
@@ -230,6 +232,7 @@ impl GPUTextureMethods<crate::DomTypeHolder> for GPUTexture {
texture_view,
self,
descriptor.parent.label.clone(),
+ CanGc::note(),
))
}