diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2020-03-09 19:58:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 19:58:21 -0400 |
commit | b4d7ec1c99259f936c9e34de157b652707d308de (patch) | |
tree | 29ce20cb86641f45243bf7cad41e50ca8becea1c /components/script_plugins/lib.rs | |
parent | 95f3d46644243b24b5c7c25b6b5d1dc50c34f0d3 (diff) | |
parent | fbcf2bbc3ef4ba0c37a6a8d77bfee96b08f3cccc (diff) | |
download | servo-b4d7ec1c99259f936c9e34de157b652707d308de.tar.gz servo-b4d7ec1c99259f936c9e34de157b652707d308de.zip |
Auto merge of #25855 - jdm:surface-inversion, r=Manishearth,asajeffrey
Remove GL->d3d blit in HoloLens immersive mode
Depends on:
* https://github.com/servo/surfman/pull/151
* https://github.com/asajeffrey/surfman-chains/pull/7
* https://github.com/servo/webxr/pull/133
These changes add two extra APIs for embedders to use when registering a WebXR device - one to allow running any closure as a task in the webgl thread, and one to register an arbitrary surface provider for a particular webxr session. When an openxr session is started, it can then obtain the webgl thread's d3d device from that thread's surfman device and ensure that openxr uses it.
Surface providers are traits that have their methods invoked by the webgl thread as part of the the normal swapchain operations. This allows the openxr surface provider to return surfaces that wrap the underlying openxr textures, which are valid in the webgl thread and can be used as the target of an opaque framebuffer.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25735
- [x] These changes do not require tests because there are no windows immersive mode tests
Diffstat (limited to 'components/script_plugins/lib.rs')
0 files changed, 0 insertions, 0 deletions