Add active and animationFrame flags to XRFrame

This commit is contained in:
Manish Goregaokar 2019-07-10 13:57:47 -07:00
parent 7a8640ec1e
commit 0b88c565c5
2 changed files with 26 additions and 1 deletions

View file

@ -140,7 +140,9 @@ impl XRSession {
let mut callbacks = mem::replace(&mut *self.raf_callback_list.borrow_mut(), vec![]);
let frame = XRFrame::new(&self.global(), self, frame);
// Step 6-7: XXXManishearth set `active`/`animationFrame` bools on `frame` to true
// Step 6,7
frame.set_active(true);
frame.set_animation_frame(true);
// Step 8
for (_, callback) in callbacks.drain(..) {