aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 95a02c25afc..cc3a7c849c2 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -258,10 +258,11 @@ where
// can't defer it after `create_constellation` has started.
script::init();
+ let mut webvr_heartbeats = Vec::new();
let webvr_services = if PREFS.is_webvr_enabled() {
let mut services = VRServiceManager::new();
services.register_defaults();
- window.register_vr_services(&mut services);
+ window.register_vr_services(&mut services, &mut webvr_heartbeats);
Some(services)
} else {
None
@@ -308,6 +309,7 @@ where
webrender,
webrender_document,
webrender_api,
+ webvr_heartbeats,
},
);