Simon Sapin
c38c964f1b
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
2019-07-31 13:34:01 +02:00
Josh Matthews
a2ca3ddbd9
Remove extra webgl message pumping thread.
2019-07-25 23:07:23 -04:00
Manish Goregaokar
b654b6007a
Hook input code into new webxr crate
2019-07-11 11:12:59 -07:00
Manish Goregaokar
57c85361be
Clean up vrdisplay, set active immersive session correctly
2019-07-11 11:12:59 -07:00
Manish Goregaokar
8780edb165
Hook webxr data into XRFrame/XRView/XRSpace
2019-07-11 11:12:59 -07:00
Manish Goregaokar
104a712a28
Remove old RAF code
2019-07-11 11:12:59 -07:00
Manish Goregaokar
877b6c67a1
Trigger callbacks in RAF
2019-07-11 11:12:59 -07:00
Bastien Orivel
292d468cd1
Use the newly added inCompartments option everywhere it can be
2019-05-25 17:28:07 +02:00
Manish Goregaokar
b693af6a54
Sync input source data every frame if necessary
2019-05-03 14:37:41 -07:00
Manish Goregaokar
5c8132c379
Use initialized input sources in getInputSources()
2019-05-03 14:37:41 -07:00
Manish Goregaokar
3a08e917e0
Write method for initializing input sources
2019-05-03 14:37:41 -07:00
Manish Goregaokar
c1a8605c3d
Allow webvr thread consumers to request input data
2019-05-03 14:37:41 -07:00
Aron Zwaan
e2e6e2ac94
Pass InCompartment by value
2019-04-25 11:37:35 +02:00
Aron Zwaan
1b6949d4cf
Add proof parameter to Promise::new_in_current_compartment
2019-04-24 19:46:10 +02:00
Aron Zwaan
60ba3d2573
Fix formatting issues
2019-04-03 20:45:30 +02:00
Aron Zwaan
782b58587a
Rename Promise::new to Promise::new_in_current_compartment
2019-04-03 20:45:30 +02:00
Manish Goregaokar
2e48606569
Compute view matrix from viewer pose
2019-03-26 00:09:15 -07:00
Manish Goregaokar
0038ddf51e
Avoid double-spawning RAF thread
2019-03-25 09:12:30 -07:00
Manish Goregaokar
9ea28c4c63
Flush renderstate queue before presenting
2019-03-25 09:12:28 -07:00
Manish Goregaokar
798c88917b
Trigger wakeup when queuing, not when processing
2019-03-25 09:11:56 -07:00
Manish Goregaokar
1a64b217af
Improve handling of missing layer_ctx
2019-03-25 09:08:26 -07:00
Manish Goregaokar
87558c3a17
Shut down old VR compositor when the layer is replaced
2019-03-25 09:08:26 -07:00
Manish Goregaokar
e20909cf43
Allow VR RAF loop to handle changes in the layer, support pending renderstates
2019-03-25 09:08:11 -07:00
Alan Jeffrey
c9087013b1
Use webvr future_frame_data to avoid blocking the WebGL thread
2019-02-26 11:07:42 -06:00
Manish Goregaokar
c44b63f335
Handle erroring out when there are multiple immersive sessions
2019-02-19 17:50:46 +05:30
Manish Goregaokar
e2522d36ff
Use async VR presentation code for XRSession
2019-01-07 23:43:04 -08:00
Manish Goregaokar
9ddbf68cb3
Make VR presentation code async; use for VRDisplay::RequestPresent
2019-01-07 23:43:04 -08:00
Manish Goregaokar
90e87b97ba
Init XR present on XR::RequestSession() with empty context
2019-01-07 15:24:26 -08:00
Manish Goregaokar
611dc4bc70
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
2019-01-04 15:05:07 -08:00
bors-servo
c4a6dcfe4b
Auto merge of #22528 - Manishearth:webxr, r=jdm,MortimerGoro
...
Preliminary WebXR support
This implements just enough WebXR to display to 3DOF devices in
immersive mode only.
Couple missing things:
- [ ] Handling reference spaces (even if just supporting eye-level spaces)
- [x] Spec links
- [ ] We enter immersive mode when baseLayer is set, but it seems like
we're supposed to do this when requestSession is called (https://github.com/immersive-web/webxr/issues/453 )
- [ ] VR/XR should block less (https://github.com/servo/servo/issues/22505 )
- [x] More pref-gating
- [x] `views` is a method instead of an attribute because we don't support FrozenArray
<s>Once I add spec links and pref gating</s> this can be landed as-is for further experimentation.
r? @jdm @MortimerGoro
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22528 )
<!-- Reviewable:end -->
2019-01-04 02:54:16 -05:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Manish Goregaokar
241d93340b
Add dom.webxr.enabled pref
2018-12-22 22:19:35 -08:00
Manish Goregaokar
4b2fa5ef08
Invoke XR RAFs appropriately
2018-12-21 16:58:30 -08:00
Manish Goregaokar
1b11a3063c
Support attaching RAF callbacks
2018-12-21 16:02:24 -08:00
Manish Goregaokar
28dff81dbf
Fill in XR frame/pose/view implementations
2018-12-21 15:47:28 -08:00
Manish Goregaokar
e259ff727e
Simple presentation
2018-12-20 17:42:22 -08:00
Manish Goregaokar
682c89a18c
allow setting base layer
2018-12-20 15:44:26 -08:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Bastien Orivel
9a7eeb349a
Update crossbeam-channel to 0.3
2018-11-18 19:33:19 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Simon Sapin
2a996fbc8f
Replace mpsc with crossbeam/servo channel, update ipc-channel
...
Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
2018-09-12 13:33:32 +08:00
Agustin Chiappe Berrini
e286fdcc53
Add the TaskSourceName to CommonScriptMsg::Task
...
Update QueuedTaskConversion and the TaskQueue to use it
2018-09-04 09:17:11 -04:00
Anthony Ramine
ce81420bef
Use ByteBuf for the canvas messages
...
The type Vec<u8> is super unefficient to work with in Serde if all you want
to represent is a simple blob.
2018-03-26 20:48:02 +02:00
Nakul Jindal
7d4e2b11e9
Implements profiler for blocked recv
2018-03-22 11:48:27 -07:00
Imanol Fernandez
ddd6c86e99
Kick off WebGL 2.0 implementation
2017-10-27 12:53:11 +02:00
ddh
52b63def44
added pipelines to all task sources
...
changed task sources to accept pipeline ids
2017-10-25 14:25:58 +01:00