mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Clean up vrdisplay, set active immersive session correctly
This commit is contained in:
parent
8780edb165
commit
57c85361be
4 changed files with 18 additions and 152 deletions
|
@ -88,10 +88,6 @@ impl XRSession {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn set_layer(&self, layer: &XRLayer) {
|
||||
self.base_layer.set(Some(layer))
|
||||
}
|
||||
|
||||
pub fn with_session<F: FnOnce(&Session)>(&self, with: F) {
|
||||
let session = self.session.borrow();
|
||||
with(&session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue