mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fill in XR frame/pose/view implementations
This commit is contained in:
parent
7e043a33f1
commit
28dff81dbf
12 changed files with 152 additions and 38 deletions
|
@ -119,7 +119,7 @@ impl XR {
|
|||
self.sync_display(&display);
|
||||
}
|
||||
},
|
||||
Err(e) => return Err(()),
|
||||
Err(_) => return Err(()),
|
||||
}
|
||||
} else {
|
||||
// WebVR spec: The Promise MUST be rejected if WebVR is not enabled/supported.
|
||||
|
@ -127,7 +127,8 @@ impl XR {
|
|||
}
|
||||
|
||||
// convert from Dom to DomRoot
|
||||
Ok(self.displays
|
||||
Ok(self
|
||||
.displays
|
||||
.borrow()
|
||||
.iter()
|
||||
.map(|d| DomRoot::from_ref(&**d))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue