Commit Graph
256 Commits
Author SHA1 Message Date
Sebastian Hengst 387952c22a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
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 7558427b07 Bug 1400407 - Part 1: Cleanup WebVR dead code,r=daoshengmu,r=jgilbert
- VRManagerChild no longer needs to be a TextureForwarder
- VRManagerParent no longer descends from HostIPCAllocator or ShmemAllocator
- PVRManager no longer manages PTexture's
- VRLayerParent::mSize was not used and has been removed

MozReview-Commit-ID: 3bNN5FR5j7M
2017-09-14 17:10:15 -07: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
[email protected] c6e529d55a Bug 1402749 - Part 2: Only allow updating VR controller amount at Vsync time; r=kip
MozReview-Commit-ID: EwXpyGnTYTD
2017-09-29 06:53:27 +00:00
Kearwood "Kip" Gilbert 25a90f29c3 Bug 1394600 - Allow VRDisplay.requestPresent update the VR layers after presentation has already begun r=daoshengmu
- A user gesture is required only for the VRDisplay.requestPresent
  call that initiates the VR presentation, as per the WebVR 1.1 spec.
- The parameters of the VRLayer can now be updated by calling
  VRDisplay.requestPresent on an active VR presentation.
- Dynamic resolution switching is now functional:
  https://webvr.info/samples/08-dynamic-resolution.html

iMozReview-Commit-ID: BL7aJfF6nqR
MozReview-Commit-ID: CmhbFJ4ij5q
2017-08-28 16:20:59 -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
Kearwood "Kip" Gilbert 6091d05533 Bug 1400387 - Change 32-bit VR Frame ID's to 64-bit r=daoshengmu
MozReview-Commit-ID: BSvZMa0XVSO
2017-09-15 13:38:47 -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
Andrew Osmond c7f6815640 Backed out changeset 727f0d09e299 (bug 1399453) because the annotations are no longer needed. 2017-09-15 15:11:29 -04: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
Andrew Osmond 42dc21a709 Bug 1399453 - Temporarily annotate crash reports with compositor thread owners. r=dvander
From the crashes associated with bug 1389021, we know that some
compositor thread IPDL owners are not being cleaned up properly. We do
not know which protocols are causing the problem, so we temporarily will
annotate the logs with the ownership status. This should be limited to
under a dozen instances of the protocols.

This change will be backed out after a few builds are produced with it
and we see the first crash reports with the relevant data.
2017-09-13 11:16:05 -04: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
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 8f2c019ebf Bug 1352520 - Add GeckoProfiler markers for WebVR; r=kip
MozReview-Commit-ID: 6j22J0rSw1Y
2017-09-06 16:08:21 +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 3e23685688 Bug 1382114 - Update openvr to 1.0.9; r=kip
MozReview-Commit-ID: BthbIIWFywD
2017-08-01 16:03:26 +08:00
JerryShih e8d3a62312 Bug 1357299 - P11: Update layers, dxva and vr module to use SyncObjectChild. v3. r=mattwoodrow,dvander
MozReview-Commit-ID: 4HTPz0YcYHq
2017-08-07 18:15:24 +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
Nicholas Nethercote 09493fcbcf Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10: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 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
Daosheng Mu c30b7243f2 Bug 1383110 - Force to fetch Oculus Touch tracking data when it is added; r=kip
MozReview-Commit-ID: 4e8qoV6cDzy
2017-07-27 15:42:59 +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
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
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
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
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
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 ebd09d2ff6 Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
MozReview-Commit-ID: KkMXsTDRnQO
2017-07-14 17:08:15 +08: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 b5902df0e2 Bug 1321275 - Fix reference counting of PVRLayerChild when GPU process has been terminated r=daoshengmu
- In VRManagerChild::DeallocPVRLayerChild, we delete the PVRLayerChild, rather
  than doing proper reference counting on the VRLayerChild object which has
  been deallocated but still referenced by VRDisplayPresentation::mLayers.
  This happens when the GPU process is terminated.

- When the user tries to stop the VR presentation or change the URL,
  PVRLayerChild::SendDestroy is called by VRDisplayPresentation::DestroyLayers.
  This results in the assertion about "invalid actor state".

- This patch fixes this by following the same pattern used by TextureClient
  for its PTextureChild.

MozReview-Commit-ID: 327cdb4s7kl
2017-07-12 16:05:40 -07:00
Kearwood "Kip" Gilbert e6282f6979 Bug 1381165 - Ensure that only the first VRDisplay.submitFrame call per VRDisplay RAF callback renders and kicks off the next VR RAF callback. r=daoshengmu
MozReview-Commit-ID: L9qPfr1Jf9o
2017-07-14 16:08:49 -07: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
Tom Ritter 83a7648aa0 Bug 1380114 Update OpenVR to build with MinGW r=kip
This involved four commits:
- Windows.h -> windows.h and similar https://github.com/ValveSoftware/openvr/pull/508
- Add a void* cast for a farproc auto-conversion https://github.com/ValveSoftware/openvr/pull/509
- Add share.h https://github.com/ValveSoftware/openvr/pull/510
- Use GCC Variadic Macros https://github.com/ValveSoftware/openvr/pull/511

This is a reapply of Bug 1363173. Hopefully Valve will actually include the patches in the next release.

MozReview-Commit-ID: KC7Z3r8qSUY
2017-05-08 15:29:43 -05: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
Jan Beich 3eeeb94f88 Bug 1375693 - Don't build OpenVR on Tier3 due to lack of open source runtime. r=kip
MozReview-Commit-ID: 6GYN5xRSZ2D
2017-06-23 04:02:12 +00:00
Kearwood "Kip" Gilbert 86779b486d Bug 1371845 - Update OpenVR SDK to 1.0.8 r=daoshengmu
MozReview-Commit-ID: 4Tsuo4AgobU
2017-06-19 15:41:27 -07:00