Auto merge of #26551 - Manishearth:per-view, r=asajeffrey

Update to handle per-view eye transforms

Depends on https://github.com/servo/webxr/pull/175
This commit is contained in:
bors-servo 2020-05-18 11:21:33 -04:00 committed by GitHub
commit c183f95297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 143 additions and 133 deletions

View file

@ -163,7 +163,7 @@ use webgpu::{
};
use webrender_api::{DocumentId, ImageKey};
use webxr_api::SwapChainId as WebXRSwapChainId;
use webxr_api::{Finger, Hand, Ray};
use webxr_api::{Finger, Hand, Ray, View};
unsafe_no_jsmanaged_fields!(Tm);
@ -777,6 +777,13 @@ unsafe impl<Space> JSTraceable for Ray<Space> {
}
}
unsafe impl<Eye> JSTraceable for View<Eye> {
#[inline]
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing
}
}
unsafe impl JSTraceable for StyleLocked<FontFaceRule> {
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing.