aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xr.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-01-07 17:59:06 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-01-07 23:43:04 -0800
commite2522d36ffa053b10296bbd1c16d60e502f1f452 (patch)
treefefede69b300fe34fac41d1a6b063478baa54274 /components/script/dom/xr.rs
parent9ddbf68cb31e5407f3773922c2b9a4337eb83b48 (diff)
downloadservo-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.rs4
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
}
}