Make views a per-frame deal

This commit is contained in:
Manish Goregaokar 2020-05-13 13:48:41 -07:00
parent bdfa6b0751
commit 708824700f
7 changed files with 33 additions and 32 deletions

View file

@ -162,7 +162,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);
@ -775,6 +775,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.