aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/vrdisplay.rs
diff options
context:
space:
mode:
authorAlex Touchet <alextouchet@outlook.com>2018-09-11 09:06:42 -0700
committerGitHub <noreply@github.com>2018-09-11 09:06:42 -0700
commit025b5550fc6f1fd74605b09973ffc606dae7432c (patch)
tree7dfb1026318b7a0135273b667d3f44e3ee8d737d /components/script/dom/vrdisplay.rs
parent9a7e1d17f0e054cb9f7eaafeee943a2ec5bc5e26 (diff)
parent049eb6887e29d8409b1dfe55bc31803f1c3220da (diff)
downloadservo-025b5550fc6f1fd74605b09973ffc606dae7432c.tar.gz
servo-025b5550fc6f1fd74605b09973ffc606dae7432c.zip
Merge branch 'master' into tidy
Diffstat (limited to 'components/script/dom/vrdisplay.rs')
-rw-r--r--components/script/dom/vrdisplay.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/components/script/dom/vrdisplay.rs b/components/script/dom/vrdisplay.rs
index c9f24d04ffa..397ec725a4d 100644
--- a/components/script/dom/vrdisplay.rs
+++ b/components/script/dom/vrdisplay.rs
@@ -42,6 +42,7 @@ use std::ops::Deref;
use std::rc::Rc;
use std::sync::mpsc;
use std::thread;
+use task_source::TaskSourceName;
use webvr_traits::{WebVRDisplayData, WebVRDisplayEvent, WebVRFrameData, WebVRLayer, WebVRMsg};
#[dom_struct]
@@ -517,7 +518,14 @@ impl VRDisplay {
let task = Box::new(task!(handle_vrdisplay_raf: move || {
this.root().handle_raf(&sender);
}));
- js_sender.send(CommonScriptMsg::Task(WebVREvent, task, Some(pipeline_id))).unwrap();
+ // NOTE: WebVR spec doesn't specify what task source we should use. Is
+ // dom-manipulation a good choice long term?
+ js_sender.send(CommonScriptMsg::Task(
+ WebVREvent,
+ task,
+ Some(pipeline_id),
+ TaskSourceName::DOMManipulation,
+ )).unwrap();
// Run Sync Poses in parallell on Render thread
let msg = WebVRCommand::SyncPoses(display_id, near, far, sync_sender.clone());