mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
#8539 Config preferences backend restructure
This commit is contained in:
parent
34fda66dfa
commit
8bfd4dc1e2
53 changed files with 1748 additions and 680 deletions
|
@ -11,7 +11,7 @@ use ipc_channel::ipc::{IpcReceiver, IpcSender};
|
|||
use msg::constellation_msg::PipelineId;
|
||||
use rust_webvr::VRServiceManager;
|
||||
use script_traits::ConstellationMsg;
|
||||
use servo_config::prefs::PREFS;
|
||||
use servo_config::pref;
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::{thread, time};
|
||||
|
@ -308,10 +308,7 @@ impl WebVRThread {
|
|||
let (sender, receiver) = ipc::channel().unwrap();
|
||||
|
||||
// Defines the polling interval time in ms for VR Events such as VRDisplay connected, disconnected, etc.
|
||||
let polling_interval: u64 = PREFS
|
||||
.get("dom.webvr.event_polling_interval")
|
||||
.as_u64()
|
||||
.unwrap_or(500);
|
||||
let polling_interval = pref!(dom.webvr.event_polling_interval) as u64;
|
||||
|
||||
thread::Builder::new()
|
||||
.name("WebVRPollEvents".into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue