Daosheng Mu
2a5a8b7872
Bug 1406327 - Part 1: Shutdown VR listener thread when no VR content in seconds; r=dvander,kip
...
MozReview-Commit-ID: AnYJT8WBkI7
--HG--
extra : rebase_source : 5d336ca6f5fb9fbcfd993e5e699d363a22bbe304
2017-10-26 16:51:14 +08:00
Attila Craciun
2ae920762e
Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE
2017-10-31 12:53:23 +02:00
Margareta Eliza Balazs
a63fdbeabb
Merge inbound to mozilla-central r=merge a=merge
2017-10-31 12:46:19 +02:00
Chris Peterson
1df202b177
Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj
...
And remove unreachable code after MOZ_CRASH().
MozReview-Commit-ID: 6ShBtPRKYlF
--HG--
extra : rebase_source : 0fe45a59411bda663828336e2686707b550144ae
extra : source : 8473fd7333d2abe1ea1cc176510c292a5b34df45
2017-10-24 23:30:31 -07:00
Andi-Bogdan Postelnicu
07c02b3927
Bug 1411630 - make mozilla::gfx::VRHMDSensorState to be trivial typed. r=kip
...
MozReview-Commit-ID: 7BniyasLIQD
--HG--
extra : rebase_source : 9f96da05deab0718b19170814a67a2b22c58656e
2017-10-30 14:51:32 +02:00
Daniel Holbert
126bd9e1a4
Bug 1412427 part 8: (automated patch) Switch a bunch of C++ files in gfx to use our standard mode lines. r=jrmuizel
...
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py
For every file that is modified in this patch, the changes are as follows:
(1) The patch changes the file to use the exact C++ mode lines from the
Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line
(2) The patch deletes any blank lines between the mode line & the MPL
boilerplate comment.
(3) If the file previously had the mode lines and MPL boilerplate in a
single contiguous C++ comment, then the patch splits them into
separate C++ comments, to match the boilerplate in the coding style.
MozReview-Commit-ID: 77D61xpSmIl
--HG--
extra : rebase_source : c6162fa3cf539a07177a19838324bf368faa162b
2017-10-27 16:10:06 -07:00
Daniel Holbert
ecf5ee687e
Bug 1412427 part 4: Indent under-indented MPL boilerplate comments by 1 space, for consistency & alignment. (whitespace-only) r=jrmuizel
...
This patch was automatically generated. I found the files to be fixed in this
patch with the following command:
grep -r "^\* This Source Code" gfx
...and then I modified each of these files with the following script
(where $1 is the filename to be modified):
###
line1="\* This Source Code Form is subject to the terms of the Mozilla Public"
line2="\* License, v\. 2\.0\. If a copy of the MPL was not distributed with this"
line3="\* file, You can obtain one at http://mozilla\.org/MPL/2\.0/ \. \*/"
# Insert 1 space at beginning:
sed -i s%"^$line1"%" $line1"% $1
sed -i s%"^$line2"%" $line2"% $1
sed -i s%"^$line3"%" $line3"% $1
###
MozReview-Commit-ID: HXBMrfnhlVr
--HG--
extra : rebase_source : de4c78563711f8366e2978c5199a5041875fbe38
2017-10-27 15:55:37 -07:00
Coroiu Cristina
9ca76dcb7a
Backed out changeset b7a07167905c::2932c914e223 (bug 1406327) for failing in dom/vr/test/mochitest/test_vrController_displayId.html r=backout a=backout on a CLOSED TREE
...
Backed out changeset 2932c914e223 (bug 1406327)
Backed out changeset cfbc6262a064 (bug 1406327)
Backed out changeset b7a07167905c (bug 1406327)
2017-10-30 14:51:52 +02:00
Kearwood "Kip" Gilbert
ccc6462307
Bug 1410493 - Update Oculus SDK from 1.5 to 1.9, update IPD during VR presentation r=daoshengmu
...
- Oculus SDK was updated from 1.5 to 1.9
- As the Oculus API now returns quaternion orientations for each
eye-to-head transform, I needed to send more information to the
content process.
- Rather than adding the quaternion, we now calculate the view matrices
on the VR thread in the GPU process rather than calculating it in the
content thread from parameters.
- OpenVR's full view matrix is now used, for compatibility with more devices.
- IPD adjustments are now updated every frame for both Oculus and OpenVR.
MozReview-Commit-ID: LOtfs4QIqc8
--HG--
extra : rebase_source : 0a69824012ede4bea0e0e709a2d027d0c35730bb
2017-10-23 14:23:03 -07:00
Daosheng Mu
c32ea833f2
Bug 1406327 - Part 3: VRSystemManager for multi-threads; r=kip
...
MozReview-Commit-ID: 4bE5hruFcT2
--HG--
extra : rebase_source : 3aa00d81127c90974f00571bd89174bd62a9d117
2017-10-26 17:45:44 +08:00
Daosheng Mu
10a11e397e
Bug 1406327 - Part 2: When loading VR content, launching the VR listener thread; r=kip
...
MozReview-Commit-ID: IyBzJyDEVdv
--HG--
extra : rebase_source : 415b474b94e3b71ac7cc111d4f59a820ebc8cae0
2017-10-26 17:28:37 +08:00
Daosheng Mu
f6e2fb5654
Bug 1406327 - Part 1: Shutdown VR listener thread when no VR content in seconds; r=dvander,kip
...
MozReview-Commit-ID: AnYJT8WBkI7
--HG--
extra : rebase_source : 373040a7e578e79c4b2ab2bbda8c155c77fdbbc5
2017-10-26 16:51:14 +08:00
Sylvestre Ledru
d60d69e2cb
Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
...
MozReview-Commit-ID: DjDkL20wRg0
--HG--
extra : rebase_source : a343d83d1f4e97e4ba56d0f57fec93079df0b5ea
2017-10-23 20:59:55 +02:00
Daosheng Mu
820e14cb33
Bug 1392216 - Part 4: Move drawing black layer commaneds to Compositor thread when stopping presentation; r=kip
...
MozReview-Commit-ID: 6YmQ9DYp79O
--HG--
extra : rebase_source : 45898a15fd2648db977647556d8cf120a67ff9d1
2017-10-16 13:30:46 +08:00
Daosheng Mu
9210bba13b
Bug 1392216 - Part 3: VRPuppet dispatch submit frame result to VRListener thread; r=kip
...
MozReview-Commit-ID: K5ivNAkB89I
--HG--
extra : rebase_source : d4a87c12f5268a7aebe68e81c58c753eb60bfbc8
2017-10-06 17:56:53 +08:00
Daosheng Mu
48b5ded13e
Bug 1392216 - Part 2: Support VR listener thread in VR; r=kip
...
MozReview-Commit-ID: 62PZ5opXoZ6
--HG--
extra : rebase_source : 81bac1b7228a35baa571f381e863e31608ba350f
2017-10-05 18:16:16 +08:00
Daosheng Mu
e41dc03f86
Bug 1392216 - Part 1: Create VR listener thread in GPU process; r=dvander,kip
...
MozReview-Commit-ID: Img0HT9ax90
--HG--
extra : rebase_source : ef3e2dac31f498454121639aa46657c0cd16f949
2017-10-05 18:12:45 +08:00
Nicholas Nethercote
8a68e6fb83
Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
...
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.
This patch greatly simplifies how things are exposed. The starting point is:
- GeckoProfiler.h can be #included unconditionally;
- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.
In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.
The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.
Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Sebastian Hengst
5e0b457b10
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
Tom Ritter
3eb3b1f0ab
Bug 1405439 Do not cast nullptr to bool implicitly, instead return false in gfx/vr r=kip
...
MozReview-Commit-ID: LtfTRFDopsT
--HG--
extra : rebase_source : c9a3412114b2bc877b2a036eaa7881da7d08b128
2017-10-03 12:47:10 -05:00
Kearwood "Kip" Gilbert
07bf2f8968
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
--HG--
extra : rebase_source : 634277825c00057bca6f8c77cdc942de61d61e9c
2017-09-14 17:10:15 -07:00
Kearwood "Kip" Gilbert
c5a2279e20
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
--HG--
extra : rebase_source : 3542b804c3def36fa74541be32d0e7cbc9698641
2017-07-21 17:30:34 -07:00
dmu@mozilla.com
e2a5d6b175
Bug 1402749 - Part 2: Only allow updating VR controller amount at Vsync time; r=kip
...
MozReview-Commit-ID: EwXpyGnTYTD
--HG--
extra : rebase_source : b969991e31dcb612e81dd47129168a535427ce0a
2017-09-29 06:53:27 +00:00
Kearwood "Kip" Gilbert
4eef388a2c
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
--HG--
extra : rebase_source : 28a3f608b4f821631e81ccdfe7f7824f9508a7b4
2017-08-28 16:20:59 -07:00
Kearwood "Kip" Gilbert
8801f82f5e
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
--HG--
extra : rebase_source : 599df3b1344ca1489cbb13169313dff8e767c399
2017-09-18 16:19:49 -07:00
Kearwood "Kip" Gilbert
c0e22d6c35
Bug 1400387 - Change 32-bit VR Frame ID's to 64-bit r=daoshengmu
...
MozReview-Commit-ID: BSvZMa0XVSO
--HG--
extra : rebase_source : 47c1a2cc9ff756cc1dd9174a12a434c4fbfc4a09
2017-09-15 13:38:47 -07:00
Phil Ringnalda
173d5226f0
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
fcc8fcf709
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
--HG--
extra : rebase_source : fdcdcb55185048cfb54163f51aca70409a1aa74a
2017-09-18 16:19:49 -07:00
Andrew Osmond
2b3ebd2479
Backed out changeset 727f0d09e299 (bug 1399453) because the annotations are no longer needed.
2017-09-15 15:11:29 -04:00
Daosheng Mu
a9f76cd981
Bug 1383907
- Enable WebVR reftests on macOS; r=jgilbert,kip
...
MozReview-Commit-ID: 2OpA95QWI4d
--HG--
extra : rebase_source : b2457c5690fe8290d407c7fab11f29afdeda159c
2017-08-25 00:30:31 +08:00
Andrew Osmond
85db0466a2
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
bcd45085c6
Bug 1394561 - Ensure WebVR content can catch up when IPC messages are delayed r=daoshengmu,kanru
...
MozReview-Commit-ID: F4NKtyaNwEo
--HG--
extra : rebase_source : fb7b2fc51de6b9cf94e6d6bb1837464ec7ea528b
2017-08-31 16:29:14 -07:00
Daosheng Mu
ae7ecb064c
Bug 1397397
- Detect vrdisplayconnect/vrdisplaydisconnect events with IsTrackedDeviceConnected() in OpenVR; r=kip
...
MozReview-Commit-ID: 1Q8zyCZhQuC
--HG--
extra : rebase_source : eb7befe980cb70b8c86adb379190b8aa0a76d973
2017-09-08 15:35:53 +08:00
Daosheng Mu
8a895d7e7f
Bug 1352520 - Add GeckoProfiler markers for WebVR; r=kip
...
MozReview-Commit-ID: 6j22J0rSw1Y
--HG--
extra : rebase_source : 44f3d0052ab0b608f3b5cea5b977f7a2bba428b6
2017-09-06 16:08:21 +08:00
Daosheng Mu
b95528913e
Bug 1392476 - Add dropframe telemetry for WebVR; r=francois,kip
...
MozReview-Commit-ID: IPVnPBkY8CN
--HG--
extra : rebase_source : 437b3528cecb05bc0bb4307447dee3e18c63d762
2017-08-28 18:43:25 +08:00
Daosheng Mu
6cea13ecbd
Bug 1389227 - Avoid accessing invalid array index in vr controllers when stopping vibrate; r=kip
...
MozReview-Commit-ID: NR5FLllABm
--HG--
extra : rebase_source : 3856d3a434716e057a98ff07fc27e3ec2b544172
2017-08-11 18:10:29 +08:00
Milan Sreckovic
e3cd0a3157
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
--HG--
extra : rebase_source : 3839cdea46729a9af05c777215cffcb9f42a2018
2017-08-14 08:29:28 -04:00
Daosheng Mu
ef8460e296
Bug 1388274 - Adjust WebVR telemetry histogram's high bound for user time spent; r=francois,kip
...
MozReview-Commit-ID: JcQZTgVmxr3
--HG--
extra : rebase_source : e00eab62c6d661a410d46d165843d7985054b145
2017-08-08 18:23:43 +08:00
Daosheng Mu
53021c2bb8
Bug 1386664 - Add Knuckles string id for SteamVR Knuckles controllers; r=kip
...
MozReview-Commit-ID: H8fX21j0u6F
--HG--
extra : rebase_source : f3d3b2ccf62559fabc8a1bc112322b3fa7c1078f
2017-08-04 14:52:01 +08:00
Daosheng Mu
ea78826dc4
Bug 1382114 - Update openvr to 1.0.9; r=kip
...
MozReview-Commit-ID: BthbIIWFywD
--HG--
extra : rebase_source : 6dfa9c4c93e39acc4a2c74691ee389d4e0a0c166
2017-08-01 16:03:26 +08:00
JerryShih
061742e951
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
92a31f9962
Bug 1382123 - SteamVR Knuckles support in WebVR. r=kip
...
MozReview-Commit-ID: 4dHRkcQcmeL
2017-08-01 16:36:26 -04:00
Nicholas Nethercote
72c884bf74
Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
...
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Daosheng Mu
96e02d5de5
Bug 1306156 - Add telemetry for watching MAU and time spent of WebVR users; r=kip
...
MozReview-Commit-ID: 6v3F6aGdNK7
--HG--
extra : rebase_source : 6fc6a8accb1cc48968f3e1a09dc76de4b508afc7
2017-07-28 18:42:11 +08:00
Daosheng Mu
9297f5b2a3
Bug 1382438 - Part 2: Replace vr controller displayId test with gamepadbuttondown event; r=kip
...
MozReview-Commit-ID: DSTg2IS407e
--HG--
extra : rebase_source : dba54bda77ff75f1d9e929ae7339b36d38e4e001
2017-07-27 11:25:45 +08:00
Daosheng Mu
6afecdd28e
Bug 1383110 - Force to fetch Oculus Touch tracking data when it is added; r=kip
...
MozReview-Commit-ID: 4e8qoV6cDzy
--HG--
extra : rebase_source : fd5f41fe3d67583af98e50a0bee363989ea00c40
2017-07-27 15:42:59 +08:00
Daosheng Mu
c673ebcff6
Bug 1384865 - Using game pose of OpenVR VRDisplay instead of render pose; r=kip
...
MozReview-Commit-ID: FXnPBdyVLdE
--HG--
extra : rebase_source : c1788782b6bfd408026b26f4ba2756437c5ce62b
2017-07-27 17:20:58 +08:00
Kearwood Gilbert
21d51ec691
Bug 1310665 - macOS OpenVR Support r=daoshengmu,mattwoodrow
...
MozReview-Commit-ID: 9CDJpFOcFUB
--HG--
extra : rebase_source : ab1f13bd733a6f295570f58940191b333868a088
extra : source : d527620e9351a04bc70689af6a7369dd09ffeef0
2017-07-04 13:50:40 -07:00
Chih-Yi Leu
47a2617b3f
Bug 1381378: Refactor - Isolate gamepad index and GamepadServiceType from GamepadChangeEvent; r=daoshengmu
...
MozReview-Commit-ID: IFjvDsl6vlY
--HG--
extra : rebase_source : 2b9add020e182acb03c01bd5c55742dc7860625d
2017-07-17 11:44:39 +08:00
Daosheng Mu
3980ed0fd6
Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
...
MozReview-Commit-ID: KkMXsTDRnQO
--HG--
extra : rebase_source : 1bb85ecddfea7695ec310d19a1f4f1f05543a4d6
2017-07-14 17:08:15 +08:00
Daosheng Mu
50f04ed171
Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
...
MozReview-Commit-ID: CfWCYJuZaBK
--HG--
extra : rebase_source : faa7a409d619d7618784e1d80358b59625dc87e6
2017-07-14 17:01:09 +08:00
Sebastian Hengst
8689e62ade
Backed out changeset 13155b1e7a48 (bug 1375816)
2017-07-18 11:48:26 +02:00
Sebastian Hengst
b5972de663
Backed out changeset 498baf1613db (bug 1375816)
2017-07-18 11:48:22 +02:00
Daosheng Mu
f2d37e1ed5
Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
...
MozReview-Commit-ID: KkMXsTDRnQO
--HG--
extra : rebase_source : d4a91a5e8a33de2f65c4c6ce23dab6ccdab13952
2017-07-14 17:08:15 +08:00
Daosheng Mu
9e15accf51
Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
...
MozReview-Commit-ID: CfWCYJuZaBK
--HG--
extra : rebase_source : 1fdc733c56978ad87d35a323997f5058e1f35247
2017-07-14 17:01:09 +08:00
Wes Kocher
eaeabd21b5
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
8277d4012f
Bug 1375816 - Part 4: VRController displayId attribute testcase; r=kip
...
MozReview-Commit-ID: KkMXsTDRnQO
--HG--
extra : rebase_source : bec4dbe0bc8a791f39cd80444aa5f41da38bbc14
2017-07-14 17:08:15 +08:00
Daosheng Mu
a4e7f823f5
Bug 1375816 - Part 3: VRController displayId attribute support; r=kip
...
MozReview-Commit-ID: CfWCYJuZaBK
--HG--
extra : rebase_source : 1fdc733c56978ad87d35a323997f5058e1f35247
2017-07-14 17:01:09 +08:00
Kearwood "Kip" Gilbert
2a221a0a19
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
--HG--
extra : rebase_source : 88847acd39d82f258f0c969e6ef5e22b794f6428
2017-07-12 16:05:40 -07:00
Kearwood "Kip" Gilbert
476b6eb5b0
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
--HG--
extra : rebase_source : 78367b8efff80b6411fd0a08493742221a18ac26
2017-07-14 16:08:49 -07:00
Kearwood "Kip" Gilbert
0a5d006f8a
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
--HG--
extra : rebase_source : 10ba1b76bf75774b8842d99b555319fb5dd7f736
2017-07-04 13:28:27 -07:00
Tom Ritter
0a440eba9b
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
--HG--
extra : rebase_source : 7c712bf64cfedd9d895083f8f3111b41850c30ff
2017-05-08 15:29:43 -05:00
Wes Kocher
c119435f8a
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
d4f04befed
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
--HG--
extra : rebase_source : d1ecf52e064ffe88c2cdebb011b8ffa9beb7b46e
2017-07-04 13:28:27 -07:00
Nicholas Nethercote
3e439bb4f8
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.
--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Bill McCloskey
f115503a0b
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
28f774243d
Bug 1375693 - Don't build OpenVR on Tier3 due to lack of open source runtime. r=kip
...
MozReview-Commit-ID: 6GYN5xRSZ2D
--HG--
extra : rebase_source : aea410a33baeef0f2e3ba99b9f27c3cc07f7365c
2017-06-23 04:02:12 +00:00
Kearwood "Kip" Gilbert
bd0b85959b
Bug 1371845 - Update OpenVR SDK to 1.0.8 r=daoshengmu
...
MozReview-Commit-ID: 4Tsuo4AgobU
--HG--
extra : rebase_source : 1eed72f0b2049ecf1cf54144fc374eb5b440516f
2017-06-19 15:41:27 -07:00
Daosheng Mu
355cf89806
Bug 1371228 - Handling SteamVR process quit events to avoid crashes; r=kip
...
MozReview-Commit-ID: DBkzz06pRSu
--HG--
extra : rebase_source : 95831f0c3454bf758fa537900dbddbf4024e13dd
2017-06-22 14:32:18 +08:00
Kearwood "Kip" Gilbert
50c0fb8b90
Bug 1375060 - Update Oculus headers to match requested API version. r=daoshengmu
...
MozReview-Commit-ID: KADOmlLm674
--HG--
extra : rebase_source : 60c976400ef1c0d7fc3c97fe5aa0b1e805c644b1
2017-06-21 15:42:10 -07:00
Kearwood Gilbert
391d83ccbc
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
--HG--
extra : rebase_source : 329c85c866f7c1c95566f77ccddb92c348563e4d
2017-05-31 11:14:55 -07:00
Kearwood Gilbert
a679f93781
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
--HG--
extra : rebase_source : 80a051c4af9e2241fe971fc2763015b5f3d18f7c
2017-06-08 14:03:26 -07:00
Daosheng Mu
a6cdb3aeb0
Bug 1368990 - Add reftest for verifying onVRPresentChange; r=kip
...
MozReview-Commit-ID: I8cce1eYQV8
--HG--
extra : rebase_source : ff04f5cefeb446f8730f570bdea804b341d1e947
2017-06-07 17:05:04 +08:00
Kearwood Gilbert
eb3becc0b0
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
--HG--
extra : rebase_source : 47d3682cad3d913504175b7d4c3e9d992236f097
2017-05-08 16:01:36 -07:00
Tom Ritter
88a2234bd4
Bug 1363173 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
MozReview-Commit-ID: KC7Z3r8qSUY
--HG--
extra : rebase_source : 747b14607d2acad92672085e390b8dd6d4678a46
2017-05-08 15:29:43 -05:00
Daosheng Mu
a839377259
Bug 1343730 - Part 1: Support submitFrame and encode the frame as a base64 image in VRPuppet; r=kip
...
MozReview-Commit-ID: jHKHSoNo6X
--HG--
extra : rebase_source : df5050a488e19af81ebd240c5fb5fdfd30b46907
2017-05-23 16:55:30 +08:00
David Anderson
8894231cd7
Rewrite genshaders.sh as a Python script that uses a manifest. (bug 1365859 part 1, r=bas)
...
--HG--
extra : rebase_source : a5b60ab1c5531c7e911fc6c6e522d4e7b8cc2497
2017-05-19 12:32:13 -07:00
Daosheng Mu
f8427acdf3
Bug 1364856 - When VRLayerChild receives __delete__, stop sending IPC messages; r=kip
...
MozReview-Commit-ID: 2vKdzipaga0
--HG--
extra : rebase_source : 56d586b5a82a68aa99ff53dba309cc4a9ea476ed
2017-05-15 18:55:42 +08:00
Kevin Chen
aa4fe616d0
Bug 1343754 - Add a function for replacing event target for actor and label PTexture; r=bevistseng,billm,nical
...
MozReview-Commit-ID: KGVBWsexkqC
--HG--
extra : rebase_source : 2ae5e2aa2e54cb2c368310ebdb1fdcbcae3092f4
2017-03-21 03:57:56 +00:00
Daosheng Mu
6a807270be
Bug 1321275 - Confirm VRLayerChild is not destroyed before sending destroy message to the parent side; r=kip
...
MozReview-Commit-ID: v0awwplOQv
--HG--
extra : rebase_source : 3a15b5249ea03e0d64a6229d55d6d418d9b8076f
2017-05-03 18:43:39 +08:00
Sebastian Hengst
0d8a182804
Backed out changeset 25f2e9e2068d (bug 1343754) for crashing e.g. in dom/workers/test/serviceworkers/test_fetch_integrity.html. r=backout
2017-05-03 12:59:36 +02:00
Kevin Chen
bdb02a828a
Bug 1343754 - Add a function for replacing event target for actor and label PTexture; r=bevistseng,billm,nical
...
MozReview-Commit-ID: KGVBWsexkqC
--HG--
extra : rebase_source : 5ac2edced51462fd013f0efba0e434d6a2fc7863
2017-03-21 03:57:56 +00:00
Wes Kocher
be34ade6b6
Merge autoland to central, a=merge
...
MozReview-Commit-ID: 2pgVZdnDKno
2017-04-27 12:44:03 -07:00
Kartikaya Gupta
e37b4e9289
Merge m-c to graphics
...
MozReview-Commit-ID: 6UBB4TW6an5
2017-04-27 09:31:17 -04:00
Phil Ringnalda
7e834ae6b6
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
Kartikaya Gupta
c896803771
Merge m-c to graphics
...
MozReview-Commit-ID: 3s6ISsQ3jG9
2017-04-24 09:17:28 -04:00
Kartikaya Gupta
2e1380aecf
Merge m-c to graphics
...
MozReview-Commit-ID: 5zsIClrx1FB
2017-04-21 10:01:47 -04:00
sotaro
e39bdc681a
Bug 1356944 - Fix external image id allocation of WebRenderTextureHost r=nical
2017-04-20 10:24:13 +09:00
Daosheng Mu
ebac06bc22
Bug 1356421 - Part 2: Notify GamepadManager when controllers are removed in VR manager; r=kip
...
MozReview-Commit-ID: Hje9NTF4xxz
--HG--
extra : rebase_source : 677995c6d5407202d493fa78528d397b404353c1
2017-04-24 13:42:59 +08:00
Daosheng Mu
86f4cbf921
Bug 1356421 - Part 1: Fix for making OpenVR get correct device types for Gamepad id; r=kip
...
MozReview-Commit-ID: KI25bjqKTTL
--HG--
extra : rebase_source : 6d20651b1e94ab1f69959d22fc03c18c9d756e84
2017-04-24 13:40:30 +08:00
Daosheng Mu
ed7c303369
Bug 1358725 - Return zero after OpenVR controllers' axis is released; r=kip
...
MozReview-Commit-ID: Le4en6pUUTQ
--HG--
extra : rebase_source : 2e3a571b88b7127f684b79001336e0b897fa2a21
2017-04-24 18:52:06 +08:00
Daosheng Mu
5d5fc39364
Bug 1355648 - Part 1: Check VR controllers if losing tracking; r=kip
...
MozReview-Commit-ID: B8DaBmz1mJo
--HG--
extra : rebase_source : e0d416075a2b045d96335f9c271c014bd463e552
2017-04-21 18:14:42 +08:00
Kearwood Gilbert
c944eed13a
Bug 1356387 - Add constructor to VRHMDSensorState
...
- Also removed some now redundant calls to VRHMDSensorState::Clear()
MozReview-Commit-ID: Kkbvkn3XAP4
--HG--
extra : rebase_source : 0daecf8ad2f4baa8f3d199c65dc7c0cbeb4aceae
2017-04-17 12:15:38 -07:00
Kearwood Gilbert
eba3a06d5f
Bug 1356382 - Move jsoncpp library and ensure it is included even when crashreporter is not r=ted
...
MozReview-Commit-ID: 2g9sFP6QQCU
--HG--
rename : toolkit/crashreporter/jsoncpp/AUTHORS => toolkit/components/jsoncpp/AUTHORS
rename : toolkit/crashreporter/jsoncpp/GIT-INFO => toolkit/components/jsoncpp/GIT-INFO
rename : toolkit/crashreporter/jsoncpp/LICENSE => toolkit/components/jsoncpp/LICENSE
rename : toolkit/crashreporter/jsoncpp/NEWS.txt => toolkit/components/jsoncpp/NEWS.txt
rename : toolkit/crashreporter/jsoncpp/README.md => toolkit/components/jsoncpp/README.md
rename : toolkit/crashreporter/jsoncpp/include/json/allocator.h => toolkit/components/jsoncpp/include/json/allocator.h
rename : toolkit/crashreporter/jsoncpp/include/json/assertions.h => toolkit/components/jsoncpp/include/json/assertions.h
rename : toolkit/crashreporter/jsoncpp/include/json/autolink.h => toolkit/components/jsoncpp/include/json/autolink.h
rename : toolkit/crashreporter/jsoncpp/include/json/config.h => toolkit/components/jsoncpp/include/json/config.h
rename : toolkit/crashreporter/jsoncpp/include/json/features.h => toolkit/components/jsoncpp/include/json/features.h
rename : toolkit/crashreporter/jsoncpp/include/json/forwards.h => toolkit/components/jsoncpp/include/json/forwards.h
rename : toolkit/crashreporter/jsoncpp/include/json/json.h => toolkit/components/jsoncpp/include/json/json.h
rename : toolkit/crashreporter/jsoncpp/include/json/reader.h => toolkit/components/jsoncpp/include/json/reader.h
rename : toolkit/crashreporter/jsoncpp/include/json/value.h => toolkit/components/jsoncpp/include/json/value.h
rename : toolkit/crashreporter/jsoncpp/include/json/version.h => toolkit/components/jsoncpp/include/json/version.h
rename : toolkit/crashreporter/jsoncpp/include/json/writer.h => toolkit/components/jsoncpp/include/json/writer.h
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_reader.cpp => toolkit/components/jsoncpp/src/lib_json/json_reader.cpp
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_tool.h => toolkit/components/jsoncpp/src/lib_json/json_tool.h
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_value.cpp => toolkit/components/jsoncpp/src/lib_json/json_value.cpp
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_valueiterator.inl => toolkit/components/jsoncpp/src/lib_json/json_valueiterator.inl
rename : toolkit/crashreporter/jsoncpp/src/lib_json/json_writer.cpp => toolkit/components/jsoncpp/src/lib_json/json_writer.cpp
extra : rebase_source : 6996fe5fd4a8e704a138b568d636c1d5238f15b2
2017-04-19 14:41:03 -07:00
Daosheng Mu
b4fb3b9c83
Bug 1353523
- Add adjustable threshold value for VR controller trigger inputs; r=kip
...
MozReview-Commit-ID: KQMccZeE2IK
--HG--
extra : rebase_source : b8c60e59c7f9678fdb15f3dcc6770198ec35b82a
2017-04-19 13:14:13 +08:00
Daosheng Mu
5ec9ae756d
Bug 1356452 - Part 5: Detect hand changing at runtime for OpenVR controllers; r=kip
...
MozReview-Commit-ID: AR5zpxryIw6
--HG--
extra : rebase_source : c99f87a1c82b59c106bbb7e1c1c29d2478e2d353
2017-04-18 15:58:34 +08:00
Daosheng Mu
ba21000af3
Bug 1356452 - Part 2: Replace vr:: namespace with ::vr:: in OpenVR; r=kip
...
MozReview-Commit-ID: uBvQ7hBI4z
--HG--
extra : rebase_source : 306dc8eb907f0d33aa62ec05f3fe97d1f07ffc69
2017-04-18 13:04:53 +08:00
Daosheng Mu
065b13fe52
Bug 1356452 - Part 1: Remove assertion for checking VRManager::Get(); r=kip
...
MozReview-Commit-ID: CMCX9Fq55tS
--HG--
extra : rebase_source : 10342128d91fea22b66dfd99379764ac6cccccc4
2017-04-18 12:45:44 +08:00
Daosheng Mu
22637d7222
Bug 1359670 - Notify GamepadManager when controllers are removed in VRPuppet manager; r=kip
...
MozReview-Commit-ID: KSlpJy8i7Xo
--HG--
extra : rebase_source : 416e8fa155c15829f0c488a2a1bf5f4924a5f375
2017-04-26 11:23:23 +08:00
Daosheng Mu
8bd65ecdd5
Bug 1355648 - Part 1: Check VR controllers if losing tracking; r=kip
...
MozReview-Commit-ID: B8DaBmz1mJo
--HG--
extra : rebase_source : cf41b0e4a87f710fb2e4da742213a0568b8a2ab9
2017-04-21 18:14:42 +08:00
Ben Tian
cda6ed446d
Bug 1350459 - Remove the [Throws] annotation from Window.navigator, r=qdot
...
MozReview-Commit-ID: 8vjyVrfa3xT
--HG--
extra : rebase_source : d63942141b562e0e69611f3cbc1da4e9ee522efc
2017-04-14 10:40:03 +08:00
Daosheng Mu
44629c133a
Bug 1336003 - Oculus Touch button touched support; r=kip
...
MozReview-Commit-ID: 95RViosiVXO
--HG--
extra : rebase_source : 4a3b714e3abd18fccf526392210477d63ae6dc26
2017-04-13 14:06:07 +08:00
Kearwood Gilbert
5c1b11f1db
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
--HG--
extra : rebase_source : 4f2486d98e6d0912185cd93537ea248a1ad876c5
2017-04-11 22:12:22 -07:00
Kearwood Gilbert
8cedccb89e
Bug 1341423 - Integrate OpenVR binding library r=daoshengmu
...
MozReview-Commit-ID: GaUnfbXgh9L
--HG--
rename : gfx/vr/openvr/openvr.h => gfx/vr/openvr/headers/openvr.h
extra : rebase_source : e7a0983371c1ed381ddf431e2d5a814c510d4967
2017-02-27 16:59:30 -08:00
Chih-Yi Leu
8aea1c1b28
Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
...
MozReview-Commit-ID: 7MFHIri2Bq7
--HG--
extra : rebase_source : 7c3c690d76d184c6bca8465e4b992ae0d8de7507
2017-03-27 11:26:19 +08:00
Kearwood Gilbert
043d85c921
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
--HG--
extra : rebase_source : 9eae07ef30b1a7559b5fe80e6698c248a55b970e
2017-03-30 09:35:49 -04:00
Daosheng Mu
639e273a82
Bug 1336002 - Part 3: Support button touched in OpenVR and Puppet; r=kip
...
MozReview-Commit-ID: CMacSyuK3mv
--HG--
extra : rebase_source : 202edb4a20fdabf38ac9edda7b2dbe336f4ebc3b
2017-04-06 19:00:20 +08:00
Daosheng Mu
c80c10beb2
Bug 1354737 - Add assertion check for TrackedDeviceClass_GenericTracker at OpenVR HandleInput(); r=kip
...
MozReview-Commit-ID: 1nRSrkq06dr
--HG--
extra : rebase_source : 7acc97484b69097f2df5d2952473543b344366ca
2017-04-10 10:07:58 +08:00
Kearwood Gilbert
9466b8b744
Bug 1350076 - Add a preference to allow proximity sensor triggering of vrdisplayactivate and vrdisplaydeactivate r=daoshengmu
...
MozReview-Commit-ID: CIPwXAofYhD
--HG--
extra : rebase_source : ed592a84b721fdba407175ada1abf831eb785357
2017-04-04 11:28:56 -07:00
Daosheng Mu
031d7a70be
Bug 1349895 - Vive Tracker support in OpenVR; r=kip
...
MozReview-Commit-ID: Gug4SUenhtU
--HG--
extra : rebase_source : 744bc90aa210466eb4a78b4fc63c7ddf79ea9bc2
2017-04-06 09:45:55 +08:00
Iris Hsiao
98b769cf18
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
2374426ebe
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
f55fc8d7c5
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
87da0a5295
Bug 1311802 - Part1 - Add SetMountState interface for VRMockDisplay; r=baku,daoshengmu
...
MozReview-Commit-ID: 7MFHIri2Bq7
--HG--
extra : rebase_source : 87c33bc5f06e6bcf53b72cae398ee72873c883cf
2017-03-27 11:26:19 +08:00
Kearwood Gilbert
09a9e040fa
Bug 1351687
- Correct and Enable Pose Prediction for Oculus r=daoshengmu
...
MozReview-Commit-ID: Cl6DufZGxgQ
--HG--
extra : rebase_source : c76a20d8d5e582028c5216d5b839e0a4de0959f2
2017-03-30 15:27:50 -04:00
Daosheng Mu
22ebee8da0
Bug 1305892 - Support Oculus Touch Haptic Feedback; r=kip
...
MozReview-Commit-ID: 7V931IAcbbx
--HG--
extra : rebase_source : 3423aa7a99b79293783cb1572f8ad3d7a257c7c7
2017-03-29 17:58:11 +08:00
Kevin Chen
c68305b9bb
Bug 1343758 - Label the tasks in vr module. r=bevistseng,kip
...
--HG--
extra : rebase_source : a50035db7bd85c36ae5af6f528f5d26762db7701
2017-03-23 06:19:11 +00:00
Daosheng Mu
62781e3b7d
Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot
...
MozReview-Commit-ID: Kvd40jnSPvK
--HG--
extra : rebase_source : f9ce4c68fd07376b8e18cbab08718c49d6fed455
2017-03-07 10:17:57 +08:00
Daosheng Mu
c1d89a986e
Bug 1299937 - Part 4: Handling vibrate haptic promise in VRManager; r=qdot
...
MozReview-Commit-ID: 3KZ8MNx3Dnq
--HG--
extra : rebase_source : 1b11f7948da7477e31f7448878a6d5874ba69087
2017-02-02 14:59:44 +08:00
Daosheng Mu
3905da3aea
Bug 1299937 - Part 3: Implement haptic pulse for OpenVR controller; r=kip,qdot
...
MozReview-Commit-ID: TUIbJpyng4
--HG--
extra : rebase_source : e449c85d0e8f9a64a63929d1211dbca3fed8a4b6
2017-02-02 14:57:58 +08:00
Daosheng Mu
a5e10d768b
Bug 1349414 - Allow updating VR controllers at the non-presenting mode; r=kip
...
MozReview-Commit-ID: CA6YxLxySDi
--HG--
extra : rebase_source : 058b8aebdf8d13e22d2c25bdf037094ca1e52f4b
2017-03-22 09:58:06 +08:00
Kearwood Gilbert
b38d859652
Bug 1346926 - Make PVRManager::SetHaveEventListener async r=kanru
...
- There appears to be no issues with simply changing
SetHaveEventListener from sync to async.
MozReview-Commit-ID: 3LKgDx9AZnm
--HG--
extra : rebase_source : 6c706f592f71a8c967a58f6906861fcff2525ebf
2017-03-21 13:21:17 -07:00
Kearwood Gilbert
4e410934af
Bug 1346923 - Remove PVRManager::GetDisplays sync IPC r=daoshengmu,kanru
...
- PVRManager::GetDisplays was a sync IPC that was part of an optimization
for a use case that has been eliminated by changes to the WebVR spec.
- This was an optimization for Navigator.activeVRDisplays that would allow
enumeration of displays active in any content process without powering
on any additional VR hardware. This will no longer be necessary as the
activeVRDisplays has been restricted to returning only the displays
active in the current javascript context.
MozReview-Commit-ID: F6sOtM9nups
--HG--
extra : rebase_source : bd8967fab9677206d998eea922c8d1640551de1c
2017-03-15 16:40:57 -07:00
Kearwood Gilbert
d6adf366f6
Bug 1344393 - Add StageParameters for Oculus r=daoshengmu
...
MozReview-Commit-ID: 9OkleewwS2b
--HG--
extra : rebase_source : 75bffc843ba9a3d869700334c41ceb910707e5f4
2017-03-17 13:33:56 -07:00
Daosheng Mu
4a4964014f
Bug 1346149 - Part 4: No longer need the index attribute in VRControllerHost; r=kip
...
MozReview-Commit-ID: 18KREzO4dy0
--HG--
extra : rebase_source : c1f711eaa4278d48e06ce18ccc6f2eedebb31345
2017-03-17 11:09:24 +08:00
Daosheng Mu
30464b7713
Bug 1346149 - Part 3: Adjust OpenVR controllers button and axis mapping to be more flexible; r=kip
...
MozReview-Commit-ID: 9qYzlgsWNXM
--HG--
extra : rebase_source : 52935ae64a0f35a8731017bc627fbb17ea659ffc
2017-03-16 15:57:04 +08:00
Daosheng Mu
a9b4ca18eb
Bug 1346149 - Part 2: Adjust Oculus Touch button and axis mapping; r=kip
...
MozReview-Commit-ID: H9FxkG0S5OL
--HG--
extra : rebase_source : d45ec0ccb7f4f0f9ca79df85b499a489983e4897
2017-03-16 15:54:00 +08:00
Daosheng Mu
ce4a76e405
Bug 1346149 - Part 1: Make button support value in VRSystemManager; r=kip
...
MozReview-Commit-ID: 72rqJZtIaDa
--HG--
extra : rebase_source : 393ad8033f656d8bd26dcf000764c51bc70f8c4f
2017-03-16 15:49:46 +08:00
Daosheng Mu
66f6566530
Bug 1306493
- Part 5: Make we only have one VRMockDisplay in tests; r=kip
...
MozReview-Commit-ID: ACIszhHGUiQ
--HG--
extra : rebase_source : 66addde807ff29315c903506439eed39b900b52e
2017-03-15 13:50:34 +08:00
Daosheng Mu
1785cdc8c9
Bug 1306493
- Part 4: Make timestamp to be a monotonically increasing value in VRMockDisplay; r=kip
...
MozReview-Commit-ID: COR9n3fQBTX
--HG--
extra : rebase_source : 373621c4f46ad438b7ba2ae5555965025e46ce23
2017-03-15 13:49:39 +08:00
Daosheng Mu
f09c777451
Bug 1306493
- Part 1: Fix bug of getting frame data from VRPuppet; r=kip
...
MozReview-Commit-ID: L8gPVjxELtV
--HG--
extra : rebase_source : 1790c8970e5401c1e0c4431c947f9bdad2fa2c34
2017-03-13 13:07:48 +08:00
Daosheng Mu
14584d2aa7
Bug 1346680 - Duplicate refcount on VRLayerParent/Child when the construction; r=kip
...
MozReview-Commit-ID: BpEmUkgmPA3
--HG--
extra : rebase_source : 2f235d5dbbb8204de3c9baaee27b3fccccc7896d
2017-03-14 12:40:19 +08:00
Kearwood Gilbert
5441d7848d
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
--HG--
extra : rebase_source : ae2de369d156e397d919d83b6c63b10374953bae
2017-03-03 16:21:18 -08:00
Ehsan Akhgari
dcb0bf572d
Bug 1345497 - Remove the unused PVRManager::GetControllers sync IPC; r=kip,billm
2017-03-09 23:26:47 -05:00
Daosheng Mu
73147a8a4c
Bug 1323328 - Part 4: Delay create VRSystemManagerPuppet for making it only be run for tests; r=kip
...
MozReview-Commit-ID: 6RxFheaP1sg
--HG--
extra : rebase_source : 6ceccf9068b8d38e94890f5543c512d5b40639bf
2017-03-04 01:27:22 +08:00
Daosheng Mu
cfca85c8aa
Bug 1323328 - Part 2: Implement VRServiceTest backend at VRManager; r=kip
...
MozReview-Commit-ID: EpW7BqeICLo
--HG--
extra : rebase_source : 6274d1ed704b6dae7b06a71e357b189c97cfbde3
2017-03-01 23:58:31 +08:00
Kearwood Gilbert
5912cbf416
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
--HG--
extra : rebase_source : cde5bc9de07cd120294ccd4ef502af030da9d03c
2017-03-03 15:17:19 -08:00
Daniel Holbert
95a650ec1b
Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
...
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
find . -name "*.cpp" -exec fromdos {} \; && \
hg revert -C gfx/angle \
gfx/sfntly \
media/webrtc \
media/libstagefright \
media/openmax_il \
other-licenses
MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
Daosheng Mu
83f1b993be
Bug 1229480: Implement Puppet VR Device; r=kip
...
MozReview-Commit-ID: hslhADrGs5
--HG--
extra : rebase_source : 8a0ead8f99f71fe36da428a4d4ead91d3ea02624
2017-03-02 00:04:12 +08:00
Daosheng Mu
7fc9ef1cd2
Bug 1341516 - Fix Oculus Touch ID and poseState; r=kip
...
MozReview-Commit-ID: 9FoLcQmgxjg
--HG--
extra : rebase_source : 7409024133b242063644d1bc705e8f91c09e0b7b
2017-02-22 12:13:30 +08:00
Kearwood Gilbert
9d394c09bb
Bug 1335606 - Add 'display' value to Navigator.vrdisplayconnect, Navigator.vrdisplaydisconnect, and Navigator.vrdisplaypresentchange events r=smaug
...
MozReview-Commit-ID: FLZ7u98mqqi
--HG--
extra : rebase_source : dd783f3c085efc50c4114ea45ac3f695670079fd
2017-02-14 11:21:09 -08:00
Daosheng Mu
03928f06a9
Bug 1305891 - Part 3: Replace GetIndex() with the index from mOculusController; r=kip
...
MozReview-Commit-ID: HHdzsxg5voi
--HG--
extra : rebase_source : 350f27bf7b1f27411585137f3b89b808d4680603
2017-02-13 11:19:31 +08:00
Daosheng Mu
4bcfff5f8b
Bug 1305891 - Part 2: Accept GamepadHand as the parameter when VRControllerHost constructs; r=kip
...
MozReview-Commit-ID: IYscauVw8iE
--HG--
extra : rebase_source : f11f9ec7d486f41917d687009ba1b47c933a68ba
2017-02-13 11:18:11 +08:00
Daosheng Mu
06d6a52263
Bug 1305891 - Part 1: Support Oculus Touch orientation and position tracking; r=kip
...
MozReview-Commit-ID: JQr6gzF06k7
--HG--
extra : rebase_source : f8958961499153ee57b9f6595bfb755327dea35c
2017-02-02 17:57:39 +08:00
Daosheng Mu
585f71980a
Bug 1305890 - Part 3: Change OpenVR and Oculus Touch gamepad id; r=kip
...
MozReview-Commit-ID: Igp2mmlI5sW
--HG--
extra : rebase_source : 3c1992f62088b18ad69a8d267f9e101a74841069
2017-02-10 15:13:44 +08:00
Daosheng Mu
6921030384
Bug 1305890 - Part 2: Oculus Touch axis move support; r=kip
...
MozReview-Commit-ID: 9lKdv0rI1z7
--HG--
extra : rebase_source : e92a15c9dfda19bb8d11b3993470cd249b571be4
2017-01-04 15:40:00 +08:00
Daosheng Mu
32f7b8390b
Bug 1305890 - Part 1: Oculus Touch button inputs support; r=kip
...
MozReview-Commit-ID: CJmSW00e8Ov
--HG--
extra : rebase_source : f27abcda43cd3c02eb7f31cece07ef7ad26899d9
2017-01-04 11:30:49 +08:00
Daosheng Mu
ea40b47f3e
Bug 1305889 - Part 3: Enumerate Oculus Touch Controllers; r=kip
...
MozReview-Commit-ID: Ep57r4hxrRt
--HG--
extra : rebase_source : 289293f7573770e1fbc81b6a8820dfa11b124899
2017-02-06 16:13:33 +08:00
Daosheng Mu
3e9c86df65
Bug 1305889 - Part 2: Using VRControllerInfo as the parameter for AddGamepad; r=kip
...
MozReview-Commit-ID: Coye62hZxRs
--HG--
extra : rebase_source : d4166395794a55c565f37b803099682c9e075d8b
2017-02-06 16:12:52 +08:00
Daosheng Mu
8a2e76ec84
Bug 1305889 - Part 1: Move GamepadHand API to VRControllerHost; r=kip
...
MozReview-Commit-ID: 5Wi8p0hvgWf
--HG--
extra : rebase_source : 3c01e0876ffe8c84a7dc97f08647dacd0f6de08b
2017-02-06 16:07:20 +08:00
JerryShih
a02136ffc6
Bug 1336362 - Remove PCompositable, PLayer and PImageContainer related def. r=dvander
...
MozReview-Commit-ID: IzxHU1SRh2t
2017-02-03 01:06:00 -05:00
Daosheng Mu
6553b776c4
Bug 1336287 - Checking OpenVR system is not null before HandleInput(); r=kip
...
MozReview-Commit-ID: 6J7rO3JXrrr
--HG--
extra : rebase_source : f2c3f628d035bc47536598a144e129304e484531
2017-02-03 10:15:02 +08:00
Kearwood (Kip) Gilbert
8dc97eb398
Bug 1293333 - Part 1: Implement window.onvrdisplayactivate and window.onvrdisplaydeactivate events r=daoshengmu,Ehsan
...
MozReview-Commit-ID: 746L5KObBcg
--HG--
extra : rebase_source : 3efa9171be4ec2aa6dc12bd4651e197571cf33c6
2016-10-18 18:18:10 -04:00
Daosheng Mu
fe796ebb0a
Bug 1334977 - Checking mVRSystem is not nullptr before scannibg OpenVR controllers; r=kip
...
MozReview-Commit-ID: 6ViJqGp82t2
--HG--
extra : rebase_source : 7d9575309b6566c9f3e6d98ab13597b5c77f81b9
2017-01-30 17:37:16 +08:00
Daosheng Mu
286c9429c0
Bug 1334310 - Checking OpenVR system is initialized before scanning controllers; r=gw280
...
MozReview-Commit-ID: abv5Rb20No
--HG--
extra : rebase_source : 0325b90588effceec267e007954238f3a34fbfe4
2017-01-27 11:52:04 +08:00
Daosheng Mu
658e2d193c
Bug 1332989 - Using VRSystemManager to manage vr displays and controllers; r=kip
...
MozReview-Commit-ID: 7M1ihvCpU9g
--HG--
extra : rebase_source : aba82b0aa8ab67860418a39dd0eaa21ea18e563e
2017-01-24 17:49:11 +08:00
Xidorn Quan
a8e64a94e1
Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
...
MozReview-Commit-ID: 3uS9s5ZrPFd
--HG--
extra : rebase_source : ff64b4468ee99ba08fd8638298a27711b7fb6393
2017-01-12 12:23:37 +11:00
Kearwood Gilbert
ed4e25824a
Bug 1325810 - Reduce unneeded IPC when WebVR is not active r=daoshengmu
...
MozReview-Commit-ID: DBCtiC2zzHf
--HG--
extra : rebase_source : 3c996750c4a36100bedce7af4a60f025e7c46b19
2017-01-06 16:28:45 -08:00
Daosheng Mu
dbdc492881
Bug 1305873 - Upgrade Oculus SDK to 1.10.1; r=kip
...
MozReview-Commit-ID: 9eu2G2elvYM
--HG--
extra : rebase_source : d9afdc3cb01ac8974c5ee8eb151472bf1a1ee563
2017-01-03 17:01:49 +08:00
David Anderson
504484a456
Remove PLayer. (bug 1323539 part 2, r=mattwoodrow)
2016-12-21 10:43:47 -05:00
Daosheng Mu
370aa4a0c8
Bug 1315896 - Part 3: Remove MOZ_GAMEPAD in VR module; r=kip
...
MozReview-Commit-ID: I9vJvxgFgIh
--HG--
extra : rebase_source : 270e971ace44b00d9877a67f68f349bbd9b550c1
2016-12-08 13:01:11 -10:00
Daosheng Mu
8385c9beb5
Bug 1323088 - OpenVR controller manager should not be created while loading runtime fail; r=kip
...
MozReview-Commit-ID: 6gM9r1Y4MkG
--HG--
extra : rebase_source : dbda834a119023c90a791267edeeac322569cd1d
2016-12-13 13:56:58 +08:00
Andrew McCreight
fccb0645ed
Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj
2016-12-12 09:27:58 -05:00
Nathan Froyd
826598caba
Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange
2016-12-12 08:45:46 -05:00
Andrew McCreight
e31b5489da
Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj
2016-12-12 07:58:33 -05:00
Daosheng Mu
01da49789d
Bug 1313581 - Part 3: Support hand attribute for OpenVR controllers; r=gw280
...
MozReview-Commit-ID: Ek91HPwsqVP
--HG--
extra : rebase_source : c522b718d0328c89d6e22f93d180f69f3719fa7e
2016-11-14 17:35:54 +08:00
Daosheng Mu
9f9b153369
Bug 1321505 - Clean VR controllers when nsGlobalWindow no longer uses gamepads; r=kip
...
MozReview-Commit-ID: IlAa5vDqwAE
--HG--
extra : rebase_source : 42e444083e2d43334147fb945643d12c4403af34
2016-12-01 14:16:16 +08:00
Daosheng Mu
a766482389
Bug 1315718 - Replace mGamepadManager raw pointer with RefPtr in VRManagerChild. r=smaug, kip, dmu
...
MozReview-Commit-ID: HOqQm2F6Dpn
---
dom/gamepad/GamepadManager.cpp | 1 -
gfx/vr/ipc/VRManagerChild.cpp | 18 ++++++------------
gfx/vr/ipc/VRManagerChild.h | 4 ----
gfx/vr/ipc/VRManagerParent.cpp | 21 +++++++++++++++++----
gfx/vr/ipc/VRManagerParent.h | 4 +++-
5 files changed, 26 insertions(+), 22 deletions(-)
--HG--
extra : amend_source : 4a687f8cbe12d88da3c88e0dba859331806fc6ff
2016-12-01 13:12:10 +08:00
Kearwood Gilbert
9a9f2caf59
Bug 1318468 - Update VR controller inputs on every VR Vsync rather than every 2D vsync r=daoshengmu
...
MozReview-Commit-ID: ICuIw4e56VC
--HG--
extra : rebase_source : 7875403f10f20c2467bdb51de20ff72456f9cc2a
2016-11-30 14:24:29 -08:00
Daosheng Mu
9fb4892439
Bug 1316279 - Part 1: Fix gfxPrefs support for WebVR in out-of-process compositing; r=kip
...
MozReview-Commit-ID: 13tPgT0uDDi
--HG--
extra : rebase_source : 76de1955e928a5102d7d23b4baf2a3070309afd6
2016-11-23 09:40:54 +08:00
Daosheng Mu
bdd87656ea
Bug 1320343 - Avoid to set Preference in the GPU process; r=kip
...
MozReview-Commit-ID: I73foOQh7L0
--HG--
extra : rebase_source : 69498fba6ec435bfce9e8fb55ba56ee64cb2729c
2016-11-26 23:06:34 +08:00
Daosheng Mu
9d690f01a2
Bug 1320633 - Refresh for new controllers coming in gfxVROpenVR; r=kip
...
MozReview-Commit-ID: Lpvawepnk0u
--HG--
extra : rebase_source : 76fc6937f28c21d597216a5f4ef27095fd66fc5e
2016-11-28 16:57:58 +08:00
Kearwood (Kip) Gilbert
53f4153710
Bug 1315543 - Eliminate UAF in Navigator::NotifyVRDisplaysUpdated,r=dmu
2016-11-24 11:50:43 -08:00
Daosheng Mu
ab1fbc2684
Bug 1318586 - Adjust OpenVR controller button mapping to be consistency; r=kip
...
MozReview-Commit-ID: 6ODcMjqYQNP
--HG--
extra : rebase_source : 71a34032d866f373eac2396e80f3ed4ce12f963a
2016-11-18 16:36:51 +08:00
Kan-Ru Chen
f8100451db
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Daosheng Mu
4d84c1a5cc
Bug 1299932 - Part 3: Handle OpenVR controller position and orientation; r=kip
...
MozReview-Commit-ID: FyneJ5JfeNE
--HG--
extra : rebase_source : afd91ee94416285441397e6f51d6031c40fa5513
2016-10-24 18:09:11 +08:00
Carsten "Tomcat" Book
846adaea6c
merge mozilla-inbound to mozilla-central a=merge
2016-11-09 16:38:04 +01:00
Daosheng Mu
ba525e3bc3
Bug 1310904 - Part 2: Solving non MOZ_GAMEPAD case in VR; r=gw280
...
MozReview-Commit-ID: mOoSWGQawI
--HG--
extra : rebase_source : 4171659ed182e243e88b276ec56f5d5829593d56
2016-11-04 15:53:01 +08:00
Daosheng Mu
954b7fbf40
Bug 1315636 - Hanlde OpenVR controller button release; r=gw280
...
MozReview-Commit-ID: 9ihcXugQn2r
--HG--
extra : rebase_source : 07db2d3d11fe3a42bf5a3f625f2b5f7728017ea1
2016-11-08 08:15:01 +08:00
Wes Kocher
db15df3e50
Merge m-c to inbound, a=merge CLOSED TREE
2016-11-04 15:19:49 -07:00
Matt Woodrow
4f998dbe2b
Bug 1300676 - Part 1: Allow asynchronous deletion of Shmem for VideoDecoderManagerChild. r=dvander
2016-11-04 13:28:28 +13:00
Daosheng Mu
ebd920cbdb
Bug 1313585 - Part 2: Removing the existing gamepads before scanning VR controllers; r=gw280
...
MozReview-Commit-ID: 24a4tRoYX8f
--HG--
extra : rebase_source : fa48d7214fb2b4d1a891b201dac7c178374ac91a
2016-10-28 16:00:12 +08:00
Bill McCloskey
b47737ed9f
Bug 792652 - Move FatalError to IProtocol (r=dvander)
...
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
C++ doesn't like there to be two virtual methods with the same name
in cases where one is overridden and the other isn't (as happens
in IToplevelProtocol).
2016-11-08 15:22:45 -08:00
Wes Kocher
4b3d16605a
Backed out 18 changesets (bug 792652) for build bustage on linux64 a=backout CLOSED TREE
...
Backed out changeset 90eaf6aec002 (bug 792652)
Backed out changeset ddd915ab4a48 (bug 792652)
Backed out changeset 95eff6c45cae (bug 792652)
Backed out changeset 75855b5a9ab9 (bug 792652)
Backed out changeset b658ebaad5d7 (bug 792652)
Backed out changeset 2ba36b8ac60c (bug 792652)
Backed out changeset 94fcd3bf3f34 (bug 792652)
Backed out changeset cf9c4164eb43 (bug 792652)
Backed out changeset 59e6d0a4f35b (bug 792652)
Backed out changeset bdf86b8b9c43 (bug 792652)
Backed out changeset 8edf4b247250 (bug 792652)
Backed out changeset 63a3c8e4016e (bug 792652)
Backed out changeset e3e496eab991 (bug 792652)
Backed out changeset 5a1e3136323a (bug 792652)
Backed out changeset dbbe3a8c00e7 (bug 792652)
Backed out changeset 1829d5358808 (bug 792652)
Backed out changeset 004cd692ba6d (bug 792652)
Backed out changeset 92e7fee81fa2 (bug 792652)
2016-11-08 12:05:28 -08:00
Bill McCloskey
35fc224b71
Bug 792652 - Move FatalError to IProtocol (r=dvander)
...
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
C++ doesn't like there to be two virtual methods with the same name
in cases where one is overridden and the other isn't (as happens
in IToplevelProtocol).
2016-11-08 11:32:30 -08:00
Matt Woodrow
db63ec0ace
Bug 1313281 - Part 2: Remove DeliverFence. r=sotaro
2016-10-27 20:59:50 +13:00
Daosheng Mu
cdee94bb39
Bug 1299930 - Support OpenVR controller trackpads via Gamepad API; r=kip
...
MozReview-Commit-ID: 41C0rc7fZTi
--HG--
extra : rebase_source : 406409b3f035134f7dab7eddb75905618ba0256d
2016-10-22 00:01:26 +08:00
dmu@mozilla.com
86b791fca4
Bug 1311587 - Make sure OpenVR is installed before handling user inputs; r=kip
...
--HG--
extra : rebase_source : 8232206feaeedf278279edbdc2af4cd2291b5fb6
2016-10-20 04:01:04 +00:00
Daosheng Mu
4a7f6008a3
Bug 1299929 - Part 3: Handle VRController button inputs; r=kip
...
MozReview-Commit-ID: DxI0dcc4uET
--HG--
extra : rebase_source : 5214f4457fadffb9e4a81c9bb986393125a30c33
2016-10-13 14:35:13 +08:00
Daosheng Mu
b0de77c7b1
Bug 1299929 - Part 2: Add extra info for VRController; r=kip
...
MozReview-Commit-ID: 5y8X5ZPnsHb
--HG--
extra : rebase_source : 1dd7503c2b59af17f287837ba6005207369b6aca
2016-10-13 14:30:26 +08:00
Daosheng Mu
3670ffdaad
Bug 1299929 - Part 1: Send GamepadServiceType in the the button and axis events; r=kip
...
MozReview-Commit-ID: AmrTpNFgkVj
--HG--
extra : rebase_source : c187592f9071fef94e8059ffdeab891c8432a397
2016-10-14 17:39:51 +08:00
Daosheng Mu
a11c74d154
Bug 1299928 - Part 6: Making GamepadManager is only run at the same process at VRMangerChild; r=kip
...
MozReview-Commit-ID: HrPHptVNgtq
--HG--
extra : rebase_source : 0b2dab59cbbc23a6cec07a386589cc20f1135fa5
2016-10-11 10:45:25 +08:00
Daosheng Mu
1c5ae68a31
Bug 1299928 - Part 5: Handle gamepad events in Vsync time; r=kip
...
MozReview-Commit-ID: Ndt3zajkli
--HG--
extra : rebase_source : 1e14a470ea3aede5c167f7699db0f3b8bdfdfa10
2016-10-07 17:00:45 +08:00
Daosheng Mu
e01d3ca1b4
Bug 1299928 - Part 4: Implement VRControllerManager; r=kip
...
MozReview-Commit-ID: 3bItvKV2HB
--HG--
extra : rebase_source : 2c41e08774b67c1b369bf20fec4f96597f6214ad
2016-10-07 16:58:01 +08:00
Daosheng Mu
570a208647
Bug 1299928 - Part 3: Construct IPC channel between Gamepad and VRManager; r=kip
...
MozReview-Commit-ID: 9hpxlLlIdh7
--HG--
extra : rebase_source : f50bf15bef94129a4a8fbd659c8551a3f153e32c
2016-10-04 16:30:04 +08:00
Daosheng Mu
3803722838
Bug 1299928 - Part 2: Rename VRDisplayType to VRDeviceType; r=kip
...
MozReview-Commit-ID: IZ1eJUtBeRI
--HG--
extra : rebase_source : d6510af05fe972ff5fd8072ca7ea12e276636676
2016-10-04 16:22:42 +08:00
Daosheng Mu
a5c0fea409
Bug 1299928 - Part 1: Make GamepadManager knows the gamepad is from VRController when adding gamepads; r=kip,lenzak800
...
MozReview-Commit-ID: IBFqj2JTHxh
--HG--
extra : rebase_source : 7716900c17bedfef5b1dff10229f377e17ccb173
2016-10-04 10:57:04 +08:00
Kearwood (Kip) Gilbert
2743764335
Bug 1306427 - Remove pose parameter from VRDisplay.submitFrame,r=smaug,r=gw280
...
MozReview-Commit-ID: LZSDm73XrIa
--HG--
extra : rebase_source : 9627a96ad333e952795ed70af0f8878a21c3c697
2016-09-30 16:43:24 -07:00
Kearwood (Kip) Gilbert
423a243482
Bug 1306415 - Part 1: Implement VRFrameData and VRDisplay.getFrameData,r=smaug,r=dmu
...
MozReview-Commit-ID: HlZUtZ7iZb5
--HG--
extra : rebase_source : 2d5de1522c0b06aa49d5a0ad3fe2170fff78ec37
2016-09-30 16:43:33 -07:00
Matt Woodrow
6b75399b35
Bug 1297826 - Override FatalError for IPDL protocols that access the GPU process and make it non-fatal. r=billm
2016-10-04 21:31:27 +13:00
Kearwood (Kip) Gilbert
a47380995d
Bug 1255210 - Update OVR_ALIGNAS macro in ovr_capi_dynamic.h r=froydnj
...
- The updated OVR_ALIGNAS macro corrects errors blocking
clang-cl builds.
MozReview-Commit-ID: 20SMLNsia67
--HG--
extra : rebase_source : 6671657d2463fa43bb2ab757e3e1b76db100d1d2
2016-09-28 16:14:39 -07:00
Matt Woodrow
55f506db9f
Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280
2016-09-27 16:22:20 +13:00
Matt Woodrow
7cc797bd49
Bug 1303897 - Part 3: Remove unnecessary param to InitIPDLActor. r=nical
2016-09-23 09:43:47 +12:00
David Anderson
81234feb8d
Recreate content compositor endpoints when the GPU process dies. (bug 1300936
part 3, r=mattwoodrow,billm)
...
--HG--
extra : rebase_source : 054937d0adf92ab90c0a630034808e5069b6a956
2016-09-20 01:18:50 -07:00
Nathan Froyd
16ae3f9d1e
Bug 1298134 - fix member initialization order in VRDisplayOculus; r=kip
2016-09-14 19:28:26 -04:00
Nathan Froyd
07545fef15
Bug 1298132 - remove unused variables in gfxVROculus.cpp; r=kip
2016-09-14 19:28:26 -04:00
kearwood
627c745c53
Bug 1288193 - Ensure that the content process receives the presentation status of a VRDisplay immediately after adding or removing layers r=gw280
...
- Corrects issues with the onvrdisplaypresentationchange events being delayed by up to 5 seconds.
- Caused a delay to enter or exit WebVR presentation on many sites.
MozReview-Commit-ID: 2LACZNwKIxW
--HG--
extra : rebase_source : ec689cd68422a8487a85e70d9e2dbb13b3a1c36c
2016-09-02 14:45:54 -07:00
JerryShih
1ea51c8a63
Bug 1298058 - Use different lock/unlock function for WebVR composition path. r=milan
2016-09-05 01:17:00 -04:00
Wes Kocher
1c8f6396c3
Merge m-c to autoland, a=merge
2016-09-02 13:34:45 -07:00
Nathan Froyd
29e8bfeb34
Bug 1299594 - part 2 - remove opened actor tracking from IToplevelProtocol; r=billm
...
The only thing we needed opened actor tracking for was the ability to
clone all the actors. But now that we no longer have support for
cloning actors, we no longer need to track the actors that we've cloned,
which makes a number of things significantly simpler.
2016-09-02 16:13:50 -04:00
Nathan Froyd
fff9bd3854
Bug 1299594 - part 1 - remove CloneManagees/CloneToplevel code from IPDL; r=billm
...
CloneOpenedToplevels, which is never called, is the only interesting
caller of CloneToplevel. And CloneToplevel, in turn, is the only
interesting caller of CloneManagees. Which means we can ditch all this
code for a decent amount of space savings, both in code and writable
static data (no more useless virtual function entries in vtables).
2016-09-02 16:13:50 -04:00
Kearwood (Kip) Gilbert
c8bb104946
Bug 1297105 - Prevent crash when DX11 resources fail to be allocated for Oculus VR HMD presentation r=mccr8
...
MozReview-Commit-ID: 3KLGu3DJVbP
--HG--
extra : rebase_source : 8a860df4e9ec374343c73c647833d8305d0f31b6
2016-08-30 15:34:11 -07:00
kearwood
129f2f75a0
Bug 1186578 - [webvr] Implement OpenVR/SteamVR support,r=gw280
...
MozReview-Commit-ID: LmpcMJubrYR
--HG--
extra : rebase_source : c5d767c635bed9fa74ca94b2ce75952f20106702
2016-07-22 12:41:00 -07:00
Kan-Ru Chen
b6d880aca1
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
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Sotaro Ikeda
1ff245b181
Bug 1259571 - Reduce tearing with basic layers on Windows r=dvander
...
--HG--
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
2016-08-23 15:18:55 -07:00
kearwood
e5a5a99d23
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
--HG--
extra : rebase_source : 79c960b206c14b8380786000fcbc2da52bc3bdab
2016-07-04 15:52:21 -07:00
kearwood
905f496ed5
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
434f167559
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
0fa5a8cb30
Bug 1250244 - Part 6: Replace VRStateValidFlags with VRDisplayCapabilityFlags,r=gw280
...
MozReview-Commit-ID: 2D4isWasWMz
2016-04-18 12:12:33 -07:00
Kearwood (Kip) Gilbert
0fa828c884
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
20e3431c17
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
d7f19a6795
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
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
David Anderson
0a5620132f
Add VRManager support to the GPU process. (bug 1287597 part 3, r=billm)
2016-07-21 00:14:59 -07:00
David Anderson
bb98e9f8d7
Move VRManagerChild initialization to GPUProcessManager. (bug 1287597 part 2, r=mattwoodrow)
2016-07-21 00:14:59 -07:00
David Anderson
38864a48be
Open content VRManagers using endpoints. (bug 1287597 part 1, r=billm)
2016-07-21 00:14:59 -07:00
David Anderson
e6a98dc91b
Clean up Transport memory management in IPDL. (bug 1283744, r=billm)
2016-07-06 18:51:20 -07:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Georgiy Frolov
60cd01af74
Bug 1198518: [webvr] add support for OSVR,r=kip
...
MozReview-Commit-ID: K9nHww0Fe8s
2016-04-26 17:18:21 -04:00
Bill McCloskey
291c555f34
Bug 1262671 - void** -> PickleIterator (r=froydnj)
2016-05-27 09:57:38 -07:00
David Anderson
03a3af51b6
Move CompositorBridgeParent::CompositorLoop to CompositorThreadHolder. (bug 1273017 part 2, r=mattwoodrow)
2016-05-15 23:39:30 -07:00
David Anderson
a6d9f5b888
Move CompositorThreadHolder into its own file. (bug 1273017 part 1, r=mattwoodrow)
2016-05-15 23:38:34 -07:00
Chris Peterson
8a9e2d2bd4
Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium
2016-05-14 00:54:55 -07:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Kyle Huey
44cee0989e
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
de92769e7e
Backed out changeset 4bcb784492bb (bug 1268313)
...
--HG--
extra : rebase_source : f2f752ab73f5bbf31a909892a0fac0f42c894430
2016-04-29 14:21:18 +02:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
12d497cb39
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
7579799b01
Bug 1266595: Replace Chromium Task with Runnable. r=froydnj
2016-04-27 17:06:05 -07:00
kearwood
e44580c5fd
Bug 1260530 - Add support for Oculus 1.3 runtime r=daoshengmu
...
MozReview-Commit-ID: K8BUa3u0qyA
--HG--
extra : rebase_source : cbb1710549428e7e3a45bb766c3502ec4534f5f1
2016-03-31 13:05:23 -07:00
David Anderson
f3dc22db8d
Rename PCompositor to PCompositorBridge. (bug 1258479 part 2, r=mattwoodrow)
...
--HG--
rename : gfx/layers/ipc/CompositorChild.cpp => gfx/layers/ipc/CompositorBridgeChild.cpp
rename : gfx/layers/ipc/CompositorChild.h => gfx/layers/ipc/CompositorBridgeChild.h
rename : gfx/layers/ipc/CompositorParent.cpp => gfx/layers/ipc/CompositorBridgeParent.cpp
rename : gfx/layers/ipc/CompositorParent.h => gfx/layers/ipc/CompositorBridgeParent.h
2016-03-22 14:08:38 -04:00
Gregory Szorc
8106c0dae9
Bug 1242005 - Disable C4359 to allow compilation on VS2015; r=kip
...
The proper fix is to fix the underlying problem. However, I haven't
touched C++ in months and I'm lazy. So I'm going for the quick fix
so Visual Studio 2015 rollout is unblocked.
MozReview-Commit-ID: 14cZCGPkx0V
--HG--
extra : rebase_source : 91ec0d461e4e14e1fa3b641b3ca7f169e0901b11
extra : source : 9e5f9917fe1a7bef9585966959d516636d7ee6ac
2016-03-14 14:11:40 -07:00
Kearwood (Kip) Gilbert
2bf919f1ce
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
--HG--
extra : rebase_source : 1447c4d9fd7f29bc14b8f91c6f5cd10dc1ec1f8b
2016-03-03 16:58:40 -08:00
kearwood
55594c5b97
Bug 1251886 - Correct inputFrameID selection when using e10s r=daoshengmu
...
- ContainerLayerComposite::ContainerRenderVR failed to find
a CanvasLayerComposite and get an inputFrameId as it was
only looking at immediate children layers.
- Initialize Oculus SDK structures with 0 to ensure code is less
brittle when Oculus SDK is updated in the future.
- Added assert and sanity check to ensure that valid inputFrameID's
are used when indexing the Oculus pose buffers.
MozReview-Commit-ID: 136lf8aMWms
--HG--
extra : rebase_source : 14ae32704e6ccd9c6823467a7cb073290cbd5a09
2016-03-01 18:00:07 -08:00
Kearwood (Kip) Gilbert
e3fd6329c9
Bug 1237691 - Implement Oculus Head Pose Prediction
...
MozReview-Commit-ID: 4hbKmZycEcn
2016-02-16 12:53:33 -08:00
kearwood
d2f423667c
Bug 1237689 - Enable Oculus hardware latency tester r=daoshengmu
...
- Generate and pass sequential frame indexes into the ovr_GetTrackingState call and the corresponding call to ovr_SubmitFrame
MozReview-Commit-ID: 5tJl5YJt7Eo
--HG--
extra : rebase_source : 5dbb35ea1451a9f378e28d81a8704b63b1b72b4d
2016-01-08 18:50:10 -08:00
Jonathan Kew
08f9b29485
Bug 1240085
- Revert to CSS-pixel units for screenX, screenY, moveTo() APIs, and adjust the origin for secondary displays with differing resolution to avoid overlapping coordinate spaces. r=emk
2016-02-05 16:29:33 +00:00
kearwood
5053ceed98
Bug 1230352
- Update to Oculus SDK 0.8.0,r=vlad
2015-09-22 09:38:28 -04:00
Kearwood (Kip) Gilbert
5b989f37cb
Bug 1235740 - Remove warning for missing Oculus VR Library from terminal output, as it is spammy and not necessary r=dholbert
...
--HG--
extra : rebase_source : 751b010bda82f69c3e700fc0ed2a25bd375ccdc7
2015-12-30 16:26:37 -08:00