diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-05-18 11:21:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 11:21:33 -0400 |
commit | c183f952973be34dfa40958cfac080c5349e9182 (patch) | |
tree | 5f16ac12f282ee626d9361e6ec83115a5e4ec011 /components/script/dom/bindings/trace.rs | |
parent | 7867bb642917369a51ef4cce28088bdb2647e28f (diff) | |
parent | d627476893cae7a243e234a289683eea99109b20 (diff) | |
download | servo-c183f952973be34dfa40958cfac080c5349e9182.tar.gz servo-c183f952973be34dfa40958cfac080c5349e9182.zip |
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
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 976ca568e92..7534541a06d 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -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. |