mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make views a per-frame deal
This commit is contained in:
parent
bdfa6b0751
commit
708824700f
7 changed files with 33 additions and 32 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue