diff options
Diffstat (limited to 'components/script/dom/vrdisplay.rs')
-rw-r--r-- | components/script/dom/vrdisplay.rs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/components/script/dom/vrdisplay.rs b/components/script/dom/vrdisplay.rs index 3bd44601c16..1d2a2370b1e 100644 --- a/components/script/dom/vrdisplay.rs +++ b/components/script/dom/vrdisplay.rs @@ -213,7 +213,8 @@ impl VRDisplayMethods for VRDisplay { self.depth_near.get(), self.depth_far.get(), sender, - )).unwrap(); + )) + .unwrap(); return match receiver.recv().unwrap() { Ok(data) => { frameData.update(&data); @@ -239,7 +240,8 @@ impl VRDisplayMethods for VRDisplay { self.global().pipeline_id(), self.DisplayId(), sender, - )).unwrap(); + )) + .unwrap(); if let Ok(data) = receiver.recv().unwrap() { // Some VRDisplay data might change after calling ResetPose() *self.display.borrow_mut() = data; @@ -352,7 +354,8 @@ impl VRDisplayMethods for VRDisplay { self.global().pipeline_id(), self.display.borrow().display_id, sender, - )).unwrap(); + )) + .unwrap(); match receiver.recv().unwrap() { Ok(()) => { *self.layer.borrow_mut() = layer_bounds; @@ -387,7 +390,8 @@ impl VRDisplayMethods for VRDisplay { self.global().pipeline_id(), self.display.borrow().display_id, Some(sender), - )).unwrap(); + )) + .unwrap(); match receiver.recv().unwrap() { Ok(()) => { self.stop_present(); @@ -557,7 +561,8 @@ impl VRDisplay { task, Some(pipeline_id), TaskSourceName::DOMManipulation, - )).unwrap(); + )) + .unwrap(); // Run Sync Poses in parallell on Render thread let msg = WebVRCommand::SyncPoses(display_id, near, far, sync_sender.clone()); @@ -573,7 +578,8 @@ impl VRDisplay { return; } } - }).expect("Thread spawning failed"); + }) + .expect("Thread spawning failed"); } fn stop_present(&self) { @@ -595,7 +601,8 @@ impl VRDisplay { self.global().pipeline_id(), self.display.borrow().display_id, None, - )).unwrap(); + )) + .unwrap(); self.stop_present(); } |