mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use async VR presentation code for XRSession
This commit is contained in:
parent
9ddbf68cb3
commit
e2522d36ff
3 changed files with 37 additions and 42 deletions
|
@ -95,9 +95,7 @@ impl XRMethods for XR {
|
|||
}
|
||||
|
||||
let session = XRSession::new(&self.global(), &displays[0]);
|
||||
// XXXManishearth we should actually xr_present() here instead of
|
||||
// in XRSession::new, and resolve a promise based on it
|
||||
promise.resolve_native(&session);
|
||||
session.xr_present(promise.clone());
|
||||
promise
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue