mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move secondary view support into a pref
This commit is contained in:
parent
fe24fc3068
commit
9fe70e6b71
5 changed files with 7 additions and 3 deletions
|
@ -282,6 +282,7 @@ mod gen {
|
|||
enabled: bool,
|
||||
#[serde(default)]
|
||||
test: bool,
|
||||
first_person_observer_view: bool,
|
||||
glwindow: {
|
||||
#[serde(default)]
|
||||
enabled: bool,
|
||||
|
|
|
@ -26,6 +26,7 @@ use ipc_channel::ipc::{self as ipc_crate, IpcReceiver};
|
|||
use ipc_channel::router::ROUTER;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use profile_traits::ipc;
|
||||
use servo_config::pref;
|
||||
use std::cell::Cell;
|
||||
use std::rc::Rc;
|
||||
use webxr_api::{Error as XRError, Frame, Session, SessionInit, SessionMode};
|
||||
|
@ -215,6 +216,7 @@ impl XRSystemMethods for XRSystem {
|
|||
let init = SessionInit {
|
||||
required_features,
|
||||
optional_features,
|
||||
first_person_observer_view: pref!(dom.webxr.first_person_observer_view),
|
||||
};
|
||||
|
||||
let mut trusted = Some(TrustedPromise::new(promise.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue