Commit Graph
44 Commits
Author SHA1 Message Date
Kearwood "Kip" Gilbert 633a57e221 Bug 1400457 - Isolate VR Rendering from Compositor r=daoshengmu,jgilbert
- WebVR is no longer dependent on PTexture, TextureParent,
  TextureHost, and TextureChild.  It continues to use TextureClient
  for pooling and coordinating locks with other Gecko code.
- PreserveDrawingBuffer now behaving correctly for 2d display mirroring
- Preparation for separating to VR process
MozReview-Commit-ID: 2RGOulCInSu
2017-07-21 17:30:34 -07:00
Kearwood "Kip" Gilbert 96a359a9d0 Bug 1394561 - Ensure WebVR content can catch up when IPC messages are delayed r=daoshengmu,kanru
MozReview-Commit-ID: F4NKtyaNwEo
2017-08-31 16:29:14 -07:00
Chih-Yi Leu 41c9ef7055 Bug 1381378: Refactor - Isolate gamepad index and GamepadServiceType from GamepadChangeEvent; r=daoshengmu
MozReview-Commit-ID: IFjvDsl6vlY
2017-07-17 11:44:39 +08:00
Kearwood "Kip" Gilbert 5f29c26357 Bug 1287944 - Improve interaction with Oculus Home r=daoshengmu
- Now destroying and re-creating Oculus sessions when switching
  between magic window and immersive WebVR (BeginPresent / ExitPresent)
- Now sending flags to Oculus ovr_initilize to specify if Firefox will
  be presenting to the VR display or just using tracking
- Now coordinating oculus session shutdown and restart between the
  VR controllers and the VR display with reference counting.
- Now able to return to Oculus home after using WebVR
- Magic window / non-exclusive sessions no longer take over the VR headset
  causing it to display a message that Firefox.exe is not responding.


MozReview-Commit-ID: EnRsxt6ZSzg
2017-07-04 13:28:27 -07:00
Wes Kocher 8f5e63d2c6 Backed out changeset f9b033c61423 (bug 1287944) for win debug failures in test_child_assertions.js a=backout
MozReview-Commit-ID: Fem34WwTkY6
2017-07-06 17:03:39 -07:00
Kearwood "Kip" Gilbert 7f4fed2105 Bug 1287944 - Improve interaction with Oculus Home r=daoshengmu
- Now destroying and re-creating Oculus sessions when switching
  between magic window and immersive WebVR (BeginPresent / ExitPresent)
- Now sending flags to Oculus ovr_initilize to specify if Firefox will
  be presenting to the VR display or just using tracking
- Now coordinating oculus session shutdown and restart between the
  VR controllers and the VR display with reference counting.
- Now able to return to Oculus home after using WebVR
- Magic window / non-exclusive sessions no longer take over the VR headset
  causing it to display a message that Firefox.exe is not responding.


MozReview-Commit-ID: EnRsxt6ZSzg
2017-07-04 13:28:27 -07:00
Kearwood Gilbert c0ff059fa1 Bug 1374393 - Build OpenVR on macOS and Linux r=daoshengmu
- OpenVR was previously only being built for Windows builds
  it will now be built additionally on macOS and Linux.

MozReview-Commit-ID: 68ZUNmdybd1
2017-05-31 11:14:55 -07:00
Kearwood Gilbert a73a762350 Bug 1362213 - Implement chrome-only API to manage VR sessions r=daoshengmu,kanru,smaug
- Added new chrome-only webidl methods to be used by browser UI and WebExtensions
- Implemented bitmasked group visibility for VR sessions to enable switching
  between chrome and regular content presentations.
- Implemented throttling mechanism to avoid runaway, unthrottled render loops
  for VR sessions that are hidden by group visibility bitmasks or due to
  lower level platform VR events, such as during the Oculus
  "Health and Safety Warning".
- Simplified the PVRManager IPC protocol while extending it to support
  VR session groups and later WebVR content performance profiling API's.
- Removed the last WebVR related sync IPC call.


MozReview-Commit-ID: BMEIPyYeEbq
2017-05-08 16:01:36 -07:00
Daosheng Mu dd4ffeec4b Bug 1343730 - Part 1: Support submitFrame and encode the frame as a base64 image in VRPuppet; r=kip
MozReview-Commit-ID: jHKHSoNo6X
2017-05-23 16:55:30 +08:00
Kearwood Gilbert b886f0308a Bug 1355654 - VRManager will now wait for 30 seconds of inactivity before releasing VR displays, rather than doing it instantaneously. r=daoshengmu
- This corrects link traversal and improves performance when
  entering and exiting VR very often.

MozReview-Commit-ID: D30NQdnpzMF
2017-04-11 22:12:22 -07:00
Kearwood Gilbert 760b32ac26 Bug 1341423 - Integrate OpenVR binding library r=daoshengmu
MozReview-Commit-ID: GaUnfbXgh9L
2017-02-27 16:59:30 -08:00
Kearwood Gilbert f4f082d504 Bug 1351048 - Do not load VR libraries until necessary, Oculus cleanup r=daoshengmu
- I have refactored the Oculus and OpenVR interfaces in gfx/vr
  so that initialization of the VR libraries only happens once
  a WebVR site is detected.
- The Oculus interface has been cleaned up and updated to unload the Oculus
  runtime library when not in use.
- The browser can now re-connect to Oculus home if it was restarted, without
  restarting the browser.
- We no longer submit a black frame at the end of VR presentation, as this
  appears to be handled by the latest Oculus runtime automatically.
- As we only hold on to the Oculus runtime when needed, this should
  reduce the likelihood of the GPU process being killed by the Oculus
  software updater.

MozReview-Commit-ID: AyWeD4CxXLD
2017-03-30 09:35:49 -04:00
Daosheng Mu da4f75a5dd Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot
MozReview-Commit-ID: Kvd40jnSPvK
2017-03-07 10:17:57 +08:00
Daosheng Mu aa503d30e7 Bug 1299937 - Part 4: Handling vibrate haptic promise in VRManager; r=qdot
MozReview-Commit-ID: 3KZ8MNx3Dnq
2017-02-02 14:59:44 +08:00
Daosheng Mu 9c398c555a Bug 1299937 - Part 3: Implement haptic pulse for OpenVR controller; r=kip,qdot
MozReview-Commit-ID: TUIbJpyng4
2017-02-02 14:57:58 +08:00
Daosheng Mu 62775df39d Bug 1349414 - Allow updating VR controllers at the non-presenting mode; r=kip
MozReview-Commit-ID: CA6YxLxySDi
2017-03-22 09:58:06 +08:00
Daosheng Mu 2aefdd67fc Bug 1323328 - Part 4: Delay create VRSystemManagerPuppet for making it only be run for tests; r=kip
MozReview-Commit-ID: 6RxFheaP1sg
2017-03-04 01:27:22 +08:00
Daosheng Mu a30329fd8e Bug 1229480: Implement Puppet VR Device; r=kip
MozReview-Commit-ID: hslhADrGs5
2017-03-02 00:04:12 +08:00
Daosheng Mu 0b2c4adb88 Bug 1305890 - Part 1: Oculus Touch button inputs support; r=kip
MozReview-Commit-ID: CJmSW00e8Ov
2017-01-04 11:30:49 +08:00
Daosheng Mu 01ce206c03 Bug 1305889 - Part 2: Using VRControllerInfo as the parameter for AddGamepad; r=kip
MozReview-Commit-ID: Coye62hZxRs
2017-02-06 16:12:52 +08:00
Daosheng Mu 08d16c492b Bug 1332989 - Using VRSystemManager to manage vr displays and controllers; r=kip
MozReview-Commit-ID: 7M1ihvCpU9g
2017-01-24 17:49:11 +08:00
Kearwood Gilbert 06faf11d6f Bug 1325810 - Reduce unneeded IPC when WebVR is not active r=daoshengmu
MozReview-Commit-ID: DBCtiC2zzHf
2017-01-06 16:28:45 -08:00
Daosheng Mu 3df208e979 Bug 1323088 - OpenVR controller manager should not be created while loading runtime fail; r=kip
MozReview-Commit-ID: 6gM9r1Y4MkG
2016-12-13 13:56:58 +08:00
Daosheng Mu cfc579c798 Bug 1313581 - Part 3: Support hand attribute for OpenVR controllers; r=gw280
MozReview-Commit-ID: Ek91HPwsqVP
2016-11-14 17:35:54 +08:00
Daosheng Mu 0e2cec5f0f Bug 1321505 - Clean VR controllers when nsGlobalWindow no longer uses gamepads; r=kip
MozReview-Commit-ID: IlAa5vDqwAE
2016-12-01 14:16:16 +08:00
Kearwood Gilbert b6ab189272 Bug 1318468 - Update VR controller inputs on every VR Vsync rather than every 2D vsync r=daoshengmu
MozReview-Commit-ID: ICuIw4e56VC
2016-11-30 14:24:29 -08:00
Daosheng Mu 59be7e0750 Bug 1320343 - Avoid to set Preference in the GPU process; r=kip
MozReview-Commit-ID: I73foOQh7L0
2016-11-26 23:06:34 +08:00
Daosheng Mu dd8f9e9d2d Bug 1320633 - Refresh for new controllers coming in gfxVROpenVR; r=kip
MozReview-Commit-ID: Lpvawepnk0u
2016-11-28 16:57:58 +08:00
Daosheng Mu 8105c831a9 Bug 1299932 - Part 3: Handle OpenVR controller position and orientation; r=kip
MozReview-Commit-ID: FyneJ5JfeNE
2016-10-24 18:09:11 +08:00
Daosheng Mu ea4a0fd074 Bug 1299929 - Part 3: Handle VRController button inputs; r=kip
MozReview-Commit-ID: DxI0dcc4uET
2016-10-13 14:35:13 +08:00
Daosheng Mu 924a0c54bd Bug 1299928 - Part 5: Handle gamepad events in Vsync time; r=kip
MozReview-Commit-ID: Ndt3zajkli
2016-10-07 17:00:45 +08:00
Daosheng Mu c488e04945 Bug 1299928 - Part 4: Implement VRControllerManager; r=kip
MozReview-Commit-ID: 3bItvKV2HB
2016-10-07 16:58:01 +08:00
Kearwood (Kip) Gilbert e51fa06242 Bug 1306427 - Remove pose parameter from VRDisplay.submitFrame,r=smaug,r=gw280
MozReview-Commit-ID: LZSDm73XrIa
2016-09-30 16:43:24 -07:00
kearwood 88943bd15a Bug 1186578 - [webvr] Implement OpenVR/SteamVR support,r=gw280
MozReview-Commit-ID: LmpcMJubrYR
2016-07-22 12:41:00 -07:00
Kan-Ru Chen a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
kearwood cec1492bc8 Bug 1284357 - Part 2: Implement Navigator.activeVRDisplays,r=gw280
- WebVR 1.0 includes a new property added to Navigator,
  activeVRDisplays
- Please apply the patchset in Bug 1250244 first.

MozReview-Commit-ID: 6wffkwvKllW
2016-07-04 15:52:21 -07:00
kearwood beb748c907 Bug 1250244 - Part 8: Implement WebVR DOM Events,r=bz
MozReview-Commit-ID: 4Fk0WszVTBR
2016-07-04 15:46:49 -07:00
Kearwood (Kip) Gilbert 429c0c2603 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Kearwood (Kip) Gilbert bbfa14d4ea Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
- In order to reduce the size of the following patches
  and increase their readability, we rename VRDevice
  to VRDisplay here first.

MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Kearwood (Kip) Gilbert f252776db2 Bug 1250244 - Part 4: Remove Cardboard VR Support,r=gw280
- The Cardboard VR support has hardcoded values and uses low-performance
  orientation APIs and rendering paths.
- There is little benefit to this Cardboard VR implementation over using
  polyfills.
- A future implementation would be based on Google VR support in Android N
  and/or Samsung Gear VR Oculus Mobile APIs.

MozReview-Commit-ID: 7e9Th8ZTmj8
2016-05-27 13:49:13 -07:00
Kearwood (Kip) Gilbert 1c4ea6686b Bug 1250244 - Part 3: Remove Oculus 0.5 Runtime support,r=gw280
- Oculus 0.5 runtime was the last to support OSX, but is no longer supported
  on the latest (El Capitan) OSX version and does not support current
  shipping Oculus hardware.
- Oculus 1.x runtime will continue to be supported for Oculus on Windows.

MozReview-Commit-ID: 2c7qViLoyr0
2016-05-27 13:49:09 -07:00
Georgiy Frolov 841ba33e46 Bug 1198518: [webvr] add support for OSVR,r=kip
MozReview-Commit-ID: K9nHww0Fe8s
2016-04-26 17:18:21 -04:00
Kearwood (Kip) Gilbert 3a1b6a1db5 Bug 1248761 - Destroy VRHMDInfo objects on the compositor thread r=daoshengmu
- Fixes a crash caused when shutting down the Oculus SDK objects
  in a different thread than the one that was used to
  initialize them.

MozReview-Commit-ID: DbB2pXVoqxL
2016-03-03 16:58:40 -08:00
Kearwood (Kip) Gilbert 2773eeacb8 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07:00