aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgpu/gputextureview.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgpu/gputextureview.rs')
-rw-r--r--components/script/dom/webgpu/gputextureview.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webgpu/gputextureview.rs b/components/script/dom/webgpu/gputextureview.rs
index f988eb1c41d..c358dcf3f8c 100644
--- a/components/script/dom/webgpu/gputextureview.rs
+++ b/components/script/dom/webgpu/gputextureview.rs
@@ -15,7 +15,7 @@ use crate::dom::webgpu::gputexture::GPUTexture;
use crate::script_runtime::CanGc;
#[dom_struct]
-pub struct GPUTextureView {
+pub(crate) struct GPUTextureView {
reflector_: Reflector,
#[ignore_malloc_size_of = "defined in webgpu"]
#[no_trace]
@@ -42,7 +42,7 @@ impl GPUTextureView {
}
}
- pub fn new(
+ pub(crate) fn new(
global: &GlobalScope,
channel: WebGPU,
texture_view: WebGPUTextureView,
@@ -63,7 +63,7 @@ impl GPUTextureView {
}
impl GPUTextureView {
- pub fn id(&self) -> WebGPUTextureView {
+ pub(crate) fn id(&self) -> WebGPUTextureView {
self.texture_view
}
}