mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Added framebuffer and related attributes to XRWebGLLayer
This commit is contained in:
parent
dc1da02aa4
commit
aa0a72df0f
10 changed files with 158 additions and 46 deletions
|
@ -103,7 +103,7 @@ impl XRSession {
|
|||
ret
|
||||
}
|
||||
|
||||
pub fn with_session<F: FnOnce(&Session)>(&self, with: F) {
|
||||
pub fn with_session<R, F: FnOnce(&Session) -> R>(&self, with: F) -> R {
|
||||
let session = self.session.borrow();
|
||||
with(&session)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue