Use async VR presentation code for XRSession

This commit is contained in:
Manish Goregaokar 2019-01-07 17:59:06 -08:00
parent 9ddbf68cb3
commit e2522d36ff
3 changed files with 37 additions and 42 deletions

View file

@ -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
}
}