diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-01-08 20:42:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 20:42:37 -0500 |
commit | 44cbe969e24e65fc8f82f77bac6374ceb4aa0e71 (patch) | |
tree | 35209a562f09750d891cadfded8dc03d8f9271a7 /components/script/microtask.rs | |
parent | d3763452b59837d72bd23eb03eac0926d1ff6145 (diff) | |
parent | e2522d36ffa053b10296bbd1c16d60e502f1f452 (diff) | |
download | servo-44cbe969e24e65fc8f82f77bac6374ceb4aa0e71.tar.gz servo-44cbe969e24e65fc8f82f77bac6374ceb4aa0e71.zip |
Auto merge of #22649 - Manishearth:xr-promises, r=jdm
Make XR/VR presenting code async
Previously we only pretended to be async, we returned promises that were already resolved because we synchronously blocked on the channel.
This:
- Moves XR presentation to session creation (where it belongs, see https://github.com/immersive-web/webxr/issues/453)
- Factors out common presentation code in a way that supports asynchronously resolving promises
- Uses this for `VRDisplay::RequestPresent()` and `XR::RequestSession()`
r? @jdm
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22649)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/microtask.rs')
0 files changed, 0 insertions, 0 deletions