servo/components/canvas
bors-servo b4d7ec1c99
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
2020-03-09 19:58:21 -04:00
..
webgl_mode Integrate swapchain surface provider changes into webgl and webxr implementations. 2020-03-09 17:50:54 -04:00
canvas_data.rs Auto merge of #25863 - servo:synup, r=jdm 2020-03-05 10:03:48 -05:00
canvas_paint_thread.rs Implement CanvasRenderingContext2D.getTransform() 2020-02-12 08:49:18 +01:00
Cargo.toml Auto merge of #25855 - jdm:surface-inversion, r=Manishearth,asajeffrey 2020-03-09 19:58:21 -04:00
lib.rs Integrate swapchain surface provider changes into webgl and webxr implementations. 2020-03-09 17:50:54 -04:00
raqote_backend.rs Make fill_rect() draw patterns correctly 2020-03-03 07:01:27 +01:00
webgl_limits.rs Add support for WebGL2 FramebufferTextureLayer 2020-03-04 10:07:13 +01:00
webgl_thread.rs Auto merge of #25855 - jdm:surface-inversion, r=Manishearth,asajeffrey 2020-03-09 19:58:21 -04:00