mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
c183f95297
9 changed files with 143 additions and 133 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue