Propagate CanGc arguments through callers in constructors (#35541)

Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
Auguste Baum 2025-02-20 17:17:45 +01:00 committed by GitHub
parent 5465bfc2af
commit 863d2ce871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
260 changed files with 986 additions and 603 deletions

View file

@ -153,7 +153,8 @@ impl XRWebGLLayer {
let session = self.session();
// TODO: Cache this texture
let color_texture_id = WebGLTextureId::new(sub_images.sub_image.as_ref()?.color_texture?);
let color_texture = WebGLTexture::new_webxr(context, color_texture_id, session);
let color_texture =
WebGLTexture::new_webxr(context, color_texture_id, session, CanGc::note());
let target = self.texture_target();
// Save the current bindings
@ -188,7 +189,7 @@ impl XRWebGLLayer {
// TODO: Cache this texture
let depth_stencil_texture_id = WebGLTextureId::new(id);
let depth_stencil_texture =
WebGLTexture::new_webxr(context, depth_stencil_texture_id, session);
WebGLTexture::new_webxr(context, depth_stencil_texture_id, session, CanGc::note());
framebuffer
.texture2d_even_if_opaque(
constants::DEPTH_STENCIL_ATTACHMENT,
@ -361,6 +362,6 @@ impl XRWebGLLayerMethods<crate::DomTypeHolder> for XRWebGLLayer {
// don't seem to do this for stereoscopic immersive sessions.
// Revisit if Servo gets support for handheld AR/VR via ARCore/ARKit
Some(XRViewport::new(&self.global(), viewport))
Some(XRViewport::new(&self.global(), viewport, CanGc::note()))
}
}