Commit Graph
73 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
Daosheng Mu 7367eed233 Bug 1397397 - Detect vrdisplayconnect/vrdisplaydisconnect events with IsTrackedDeviceConnected() in OpenVR; r=kip
MozReview-Commit-ID: 1Q8zyCZhQuC
2017-09-08 15:35:53 +08:00
Daosheng Mu d5ff1b7018 Bug 1392476 - Add dropframe telemetry for WebVR; r=francois,kip
MozReview-Commit-ID: IPVnPBkY8CN
2017-08-28 18:43:25 +08:00
Daosheng Mu ee79b2d076 Bug 1389227 - Avoid accessing invalid array index in vr controllers when stopping vibrate; r=kip
MozReview-Commit-ID: NR5FLllABm
2017-08-11 18:10:29 +08:00
Milan Sreckovic fe9daf64d1 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp
2017-08-14 08:29:28 -04:00
Daosheng Mu 23763260fe Bug 1388274 - Adjust WebVR telemetry histogram's high bound for user time spent; r=francois,kip
MozReview-Commit-ID: JcQZTgVmxr3
2017-08-08 18:23:43 +08:00
Daosheng Mu 1de1e1c52b Bug 1386664 - Add Knuckles string id for SteamVR Knuckles controllers; r=kip
MozReview-Commit-ID: H8fX21j0u6F
2017-08-04 14:52:01 +08:00
Daosheng Mu 4aff7bbca3 Bug 1382123 - SteamVR Knuckles support in WebVR. r=kip
MozReview-Commit-ID: 4dHRkcQcmeL
2017-08-01 16:36:26 -04:00
Daosheng Mu b5cb9e8549 Bug 1306156 - Add telemetry for watching MAU and time spent of WebVR users; r=kip
MozReview-Commit-ID: 6v3F6aGdNK7
2017-07-28 18:42:11 +08:00
Daosheng Mu beae671bed Bug 1384865 - Using game pose of OpenVR VRDisplay instead of render pose; r=kip
MozReview-Commit-ID: FXnPBdyVLdE
2017-07-27 17:20:58 +08:00
Kearwood Gilbert 9b24bb93b6 Bug 1310665 - macOS OpenVR Support r=daoshengmu,mattwoodrow
MozReview-Commit-ID: 9CDJpFOcFUB
2017-07-04 13:50:40 -07:00
Daosheng Mu ebf1217dc0 Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
MozReview-Commit-ID: CfWCYJuZaBK
2017-07-14 17:01:09 +08:00
Sebastian Hengst 3f2dc5b33f Backed out changeset 13155b1e7a48 (bug 1375816) 2017-07-18 11:48:26 +02:00
Daosheng Mu 5ebc24a8bc Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
MozReview-Commit-ID: CfWCYJuZaBK
2017-07-14 17:01:09 +08:00
Wes Kocher 45b1db194e Backed out 4 changesets (bug 1375816) for various failures including builds busted in gfxVROculus.cpp a=backout
Backed out changeset 73619b7ce23d (bug 1375816)
Backed out changeset dd09fc501f90 (bug 1375816)
Backed out changeset fd4517198d6c (bug 1375816)
Backed out changeset e15e060f034c (bug 1375816)

MozReview-Commit-ID: 9VXOC0V45NE
2017-07-17 23:18:21 -07:00
Daosheng Mu 8fbd66c975 Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
MozReview-Commit-ID: CfWCYJuZaBK
2017-07-14 17:01:09 +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
Nicholas Nethercote fcd4f4fa21 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.
2017-06-30 19:05:41 -07:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Daosheng Mu fa41f94d57 Bug 1371228 - Handling SteamVR process quit events to avoid crashes; r=kip
MozReview-Commit-ID: DBkzz06pRSu
2017-06-22 14:32:18 +08: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 6d9ae7858e Bug 1355648 - Part 1: Check VR controllers if losing tracking; r=kip
MozReview-Commit-ID: B8DaBmz1mJo
2017-04-21 18:14:42 +08:00
Phil Ringnalda 6a31d00193 Backed out 2 changesets (bug 1355648) for failures in test_gamepad_extensions.html
CLOSED TREE

Backed out changeset 1a675abcc1f0 (bug 1355648)
Backed out changeset f07c7d6ddb8d (bug 1355648)

MozReview-Commit-ID: 86HfzOsNVjZ
2017-04-25 20:31:16 -07:00
Daosheng Mu ef375d9ec8 Bug 1356421 - Part 2: Notify GamepadManager when controllers are removed in VR manager; r=kip
MozReview-Commit-ID: Hje9NTF4xxz
2017-04-24 13:42:59 +08:00
Daosheng Mu 28e5beea69 Bug 1356421 - Part 1: Fix for making OpenVR get correct device types for Gamepad id; r=kip
MozReview-Commit-ID: KI25bjqKTTL
2017-04-24 13:40:30 +08:00
Daosheng Mu c69d9d61c4 Bug 1358725 - Return zero after OpenVR controllers' axis is released; r=kip
MozReview-Commit-ID: Le4en6pUUTQ
2017-04-24 18:52:06 +08:00
Daosheng Mu efe8172d2c Bug 1355648 - Part 1: Check VR controllers if losing tracking; r=kip
MozReview-Commit-ID: B8DaBmz1mJo
2017-04-21 18:14:42 +08:00
Daosheng Mu c3e9b68fc5 Bug 1353523 - Add adjustable threshold value for VR controller trigger inputs; r=kip
MozReview-Commit-ID: KQMccZeE2IK
2017-04-19 13:14:13 +08:00
Daosheng Mu 4920db8f6a Bug 1356452 - Part 5: Detect hand changing at runtime for OpenVR controllers; r=kip
MozReview-Commit-ID: AR5zpxryIw6
2017-04-18 15:58:34 +08:00
Daosheng Mu 1d35c9da05 Bug 1356452 - Part 2: Replace vr:: namespace with ::vr:: in OpenVR; r=kip
MozReview-Commit-ID: uBvQ7hBI4z
2017-04-18 13:04:53 +08:00
Kearwood Gilbert c5a8ac58b8 Bug 1356387 - Add constructor to VRHMDSensorState
- Also removed some now redundant calls to VRHMDSensorState::Clear()


MozReview-Commit-ID: Kkbvkn3XAP4
2017-04-17 12:15:38 -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 b69520290d Bug 1336002 - Part 3: Support button touched in OpenVR and Puppet; r=kip
MozReview-Commit-ID: CMacSyuK3mv
2017-04-06 19:00:20 +08:00
Daosheng Mu eabfa8524b Bug 1354737 - Add assertion check for TrackedDeviceClass_GenericTracker at OpenVR HandleInput(); r=kip
MozReview-Commit-ID: 1nRSrkq06dr
2017-04-10 10:07:58 +08:00
Daosheng Mu 760b273bf9 Bug 1349895 - Vive Tracker support in OpenVR; r=kip
MozReview-Commit-ID: Gug4SUenhtU
2017-04-06 09:45:55 +08:00
Daosheng Mu 805a4f6e04 Bug 1305892 - Support Oculus Touch Haptic Feedback; r=kip
MozReview-Commit-ID: 7V931IAcbbx
2017-03-29 17:58:11 +08: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 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 3db7b0de90 Bug 1346149 - Part 4: No longer need the index attribute in VRControllerHost; r=kip
MozReview-Commit-ID: 18KREzO4dy0
2017-03-17 11:09:24 +08:00
Daosheng Mu 3dc86c61d8 Bug 1346149 - Part 3: Adjust OpenVR controllers button and axis mapping to be more flexible; r=kip
MozReview-Commit-ID: 9qYzlgsWNXM
2017-03-16 15:57:04 +08:00
Kearwood Gilbert ac8cf8eb5a Bug 1345564 - Reduce sync IPC calls used by WebVR r=daoshengmu,Ehsan,kanru
- Eliminated the VRDisplay.GetImmediateSensorState sync call
  and associated code as it is no longer needed.

MozReview-Commit-ID: 7BsCKC9EbsY
2017-03-03 16:21:18 -08:00
Kearwood Gilbert a61768e84c Bug 1293793 - Ensure VRFrameData.timestamp is a monotonically increasing value r=daoshengmu
- Oculus and OSVR VRFrameData.timestamp values were already returning correct
  timestamps using their respective API's timestamp functions.
- OpenVR is now using timestamp values returned by the OpenVR API.
- A pseudo-random base for VRFrameData.timestamp has been implemented
  in order to avoid leaking details related to how long the user has
  been using their VR headset before hitting a page.
- More details on timestamp base within code comments...

MozReview-Commit-ID: 7VdiRn7l8Rb
2017-03-03 15:17:19 -08:00
Daosheng Mu 08baf2df7a Bug 1305891 - Part 2: Accept GamepadHand as the parameter when VRControllerHost constructs; r=kip
MozReview-Commit-ID: IYscauVw8iE
2017-02-13 11:18:11 +08:00
Daosheng Mu 2acfdf46d0 Bug 1305890 - Part 3: Change OpenVR and Oculus Touch gamepad id; r=kip
MozReview-Commit-ID: Igp2mmlI5sW
2017-02-10 15:13:44 +08:00
Daosheng Mu 43424d7943 Bug 1305889 - Part 3: Enumerate Oculus Touch Controllers; r=kip
MozReview-Commit-ID: Ep57r4hxrRt
2017-02-06 16:13:33 +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