mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Simple presentation
This commit is contained in:
parent
70e8a19200
commit
e259ff727e
3 changed files with 43 additions and 1 deletions
|
@ -89,12 +89,15 @@ impl XRMethods for XR {
|
|||
},
|
||||
};
|
||||
|
||||
// XXXManishearth filter for displays which can_present
|
||||
if displays.is_empty() {
|
||||
promise.reject_error(Error::Security);
|
||||
}
|
||||
|
||||
let session = XRSession::new(&self.global(), &displays[0]);
|
||||
promise.resolve_native(&session);
|
||||
// whether or not we should initiate presentation is unclear
|
||||
// https://github.com/immersive-web/webxr/issues/453
|
||||
|
||||
promise
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue