diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-01-07 17:59:06 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-01-07 23:43:04 -0800 |
commit | e2522d36ffa053b10296bbd1c16d60e502f1f452 (patch) | |
tree | fefede69b300fe34fac41d1a6b063478baa54274 /components/script/dom/xr.rs | |
parent | 9ddbf68cb31e5407f3773922c2b9a4337eb83b48 (diff) | |
download | servo-e2522d36ffa053b10296bbd1c16d60e502f1f452.tar.gz servo-e2522d36ffa053b10296bbd1c16d60e502f1f452.zip |
Use async VR presentation code for XRSession
Diffstat (limited to 'components/script/dom/xr.rs')
-rw-r--r-- | components/script/dom/xr.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/xr.rs b/components/script/dom/xr.rs index a608d7e31a4..3e18ee0d279 100644 --- a/components/script/dom/xr.rs +++ b/components/script/dom/xr.rs @@ -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 } } |