Commit Graph
38 Commits
Author SHA1 Message Date
Tom Ritter c2bfd07189 Bug 1405439 Do not cast nullptr to bool implicitly, instead return false in gfx/vr r=kip
MozReview-Commit-ID: LtfTRFDopsT
2017-10-03 12:47:10 -05:00
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 d4d4911b16 Bug 1381085 - Submit VR frames with a separate ID3DDeviceContextState r=daoshengmu
- Using a separate ID3DDeviceContextState ensures
  that the WebVR context does not stomp over the
  mirrored state used by the MLGPU "Advanced" Layers rendering.

MozReview-Commit-ID: 99mfdsjFrMI
2017-09-18 16:19:49 -07:00
Phil Ringnalda 5195628cfa Backed out changeset 8e98f894a8a3 (bug 1381085) for Windows 7 failures in draw_rect.html and change_size.html
CLOSED TREE

MozReview-Commit-ID: D8RWiRfUPL9
2017-09-20 19:39:36 -07:00
Kearwood "Kip" Gilbert 1acf5d2cfd Bug 1381085 - Submit VR frames with a separate ID3DDeviceContextState r=daoshengmu
- Using a separate ID3DDeviceContextState ensures
  that the WebVR context does not stomp over the
  mirrored state used by the MLGPU "Advanced" Layers rendering.
MozReview-Commit-ID: 99mfdsjFrMI
2017-09-18 16:19:49 -07:00
Daosheng Mu 69b46e1bbc Bug 1383907 - Enable WebVR reftests on macOS; r=jgilbert,kip
MozReview-Commit-ID: 2OpA95QWI4d
2017-08-25 00:30:31 +08:00
Daosheng Mu 993bfac834 Bug 1382438 - Part 2: Replace vr controller displayId test with gamepadbuttondown event; r=kip
MozReview-Commit-ID: DSTg2IS407e
2017-07-27 11:25:45 +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 fb033cbf9a Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
MozReview-Commit-ID: KkMXsTDRnQO
2017-07-14 17:08:15 +08:00
Sebastian Hengst 90e1f886eb Backed out changeset 498baf1613db (bug 1375816) 2017-07-18 11:48:22 +02:00
Daosheng Mu 1713faf0ef Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
MozReview-Commit-ID: KkMXsTDRnQO
2017-07-14 17:08:15 +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 ebd09d2ff6 Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
MozReview-Commit-ID: KkMXsTDRnQO
2017-07-14 17:08:15 +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 ef4ad76750 Bug 1352446 - Fix 32-bit build crash with Oculus VR r=daoshengmu
- Validate GetSharedResourceView in VRDisplayOculus::SubmitFrame and VRDisplayPuppet::SubmitFrame
- Correct size of frameIndex to be "long long" rather than "int" for
  ovr_GetPredictedDisplayTime
- Updated to Oculus 1.15.0 SDK
- Now sending absolute timestamp of the predicted frame time
  to ovr_GetTrackingState rather than a delta

MozReview-Commit-ID: GLSkqwae7Jp
2017-06-08 14:03:26 -07:00
Daosheng Mu b121cee52b Bug 1368990 - Add reftest for verifying onVRPresentChange; r=kip
MozReview-Commit-ID: I8cce1eYQV8
2017-06-07 17:05:04 +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 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
Daosheng Mu d59eda7a85 Bug 1359670 - Notify GamepadManager when controllers are removed in VRPuppet manager; r=kip
MozReview-Commit-ID: KSlpJy8i7Xo
2017-04-26 11:23:23 +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
Chih-Yi Leu 7467fa75cc Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
MozReview-Commit-ID: 7MFHIri2Bq7
2017-03-27 11:26:19 +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
Iris Hsiao 6b7cc9c988 Backed out the accidental backout of the backout of 3 changesets (bug 1311802). r=backout/reland
Backed out changeset 44bd57c9340f (bug 1311802)
Backed out changeset 4bb94cbb9a24 (bug 1311802)
Backed out changeset 15d9c5895041 (bug 1311802)
2017-03-31 10:11:19 +02:00
Sebastian Hengst 38bf27027d Backed out changeset 7e3f9a865413 (bug 1311802) for failing browser/base/content/test/static/browser_parsable_css.js. r=backout 2017-03-31 10:08:21 +02:00
Iris Hsiao 86f6c884d8 Backed out 3 changesets (bug 1311802) for mochitest failures in test_vrDisplay_onvrdisplaydeactivate_crosscontent.html
Backed out changeset 44bd57c9340f (bug 1311802)
Backed out changeset 4bb94cbb9a24 (bug 1311802)
Backed out changeset 15d9c5895041 (bug 1311802)
2017-03-31 14:35:43 +08:00
Chih-Yi Leu 3835eaf01a Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
MozReview-Commit-ID: 7MFHIri2Bq7
2017-03-27 11:26:19 +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 50136a1d40 Bug 1346149 - Part 1: Make button support value in VRSystemManager; r=kip
MozReview-Commit-ID: 72rqJZtIaDa
2017-03-16 15:49:46 +08:00
Daosheng Mu 013543fafb Bug 1306493 - Part 4: Make timestamp to be a monotonically increasing value in VRMockDisplay; r=kip
MozReview-Commit-ID: COR9n3fQBTX
2017-03-15 13:49:39 +08:00
Daosheng Mu 63d08fa1a4 Bug 1306493 - Part 1: Fix bug of getting frame data from VRPuppet; r=kip
MozReview-Commit-ID: L8gPVjxELtV
2017-03-13 13:07:48 +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
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