Format remaining files

This commit is contained in:
Pyfisch 2018-11-06 13:01:35 +01:00
parent bf47f90da6
commit cb07debcb6
252 changed files with 5944 additions and 3744 deletions

View file

@ -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();
}