mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Propagate CanGc
arguments through callers in constructors (#35541)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
5465bfc2af
commit
863d2ce871
260 changed files with 986 additions and 603 deletions
|
@ -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()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue