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
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
Coroiu Cristina
12e0c4a11e
Backed out changeset b8743cbd9049 (bug 1411630) for failing on OS X and Windows 10 reftests in dom/vr/test/reftest/change_size.html r=backout a=backout on a CLOSED TREE
...
Backed out changeset b8743cbd9049 (bug 1411630)
2017-10-30 14:29:41 +02:00
Andi-Bogdan Postelnicu
bd50b9031f
Bug 1411630 - make mozilla::gfx::VRHMDSensorState to be trivial typed. r=kip
...
MozReview-Commit-ID: 7BniyasLIQD
--HG--
extra : rebase_source : ad7603dd8e2f8ea93989833de09624108aa7bd31
2017-10-30 10:43:14 +02:00
Sebastian Hengst
32f7c8fec3
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Kearwood Gilbert
f379b8fea9
Bug 1402871 - Change VREventObserver::mWindow to a RefPtr,r=dveditz
...
MozReview-Commit-ID: 79MlNMAvIQD
--HG--
extra : rebase_source : 717bed76ca218844d4308e616ee5a7bb2a59591c
2017-10-11 14:25:51 -07: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
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
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
f2b9872ab8
Bug 1396326 - VRDisplay.getFrameData() now returns false when orientation data is not available,r=daoshengmu
...
MozReview-Commit-ID: 9XlzeXWOy8U
--HG--
extra : rebase_source : 9a5a7b306f918a4a032673d3f6823b3f56b74aa5
2017-09-27 13:54:58 -07: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
Daosheng Mu
9e3c4d27d7
Bug 1400091 - Skip-if WebVR reftests for MacOSX non-Nightly build; r=kip
...
MozReview-Commit-ID: CGYHW3n6QuX
--HG--
extra : rebase_source : 2c8c9d1de0e06a7434e961eea45c492f58674520
2017-09-15 15:30:33 +08: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
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
Andrew McCreight
78807d8776
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07: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
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
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
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
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
Sylvestre Ledru
4e9cf83ee8
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02: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
Daosheng Mu
071f8f0124
Bug 1229481 - Part 2: Add draw rect reftest for WebVR; r=kip
...
MozReview-Commit-ID: CnSYFFZS8lP
--HG--
extra : rebase_source : 9f139a9cb96a792aefa329c5c79d423c7a2d0ed5
2017-05-05 19:00:25 +08:00
Daosheng Mu
1b2ff2d010
Bug 1229481 - Part 1: Move VR mochitest to its subfolder; r=kip
...
MozReview-Commit-ID: IK9f7aepBgw
--HG--
rename : dom/vr/test/VRSimulationDriver.js => dom/vr/test/mochitest/VRSimulationDriver.js
rename : dom/vr/test/WebVRHelpers.js => dom/vr/test/mochitest/WebVRHelpers.js
rename : dom/vr/test/mochitest.ini => dom/vr/test/mochitest/mochitest.ini
rename : dom/vr/test/requestPresent.js => dom/vr/test/mochitest/requestPresent.js
rename : dom/vr/test/runVRTest.js => dom/vr/test/mochitest/runVRTest.js
rename : dom/vr/test/test_vrDisplay_exitPresent.html => dom/vr/test/mochitest/test_vrDisplay_exitPresent.html
rename : dom/vr/test/test_vrDisplay_getFrameData.html => dom/vr/test/mochitest/test_vrDisplay_getFrameData.html
rename : dom/vr/test/test_vrDisplay_onvrdisplaydeactivate_crosscontent.html => dom/vr/test/mochitest/test_vrDisplay_onvrdisplaydeactivate_crosscontent.html
rename : dom/vr/test/test_vrDisplay_requestPresent.html => dom/vr/test/mochitest/test_vrDisplay_requestPresent.html
extra : rebase_source : 880f8b75f3d5835d0728037a0bdc9d768ba32124
2017-05-04 12:31:51 +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
Daosheng Mu
911478d912
Bug 1343730 - Part 2: Get the submitframe result from VRDisplay; r=baku,kip
...
MozReview-Commit-ID: 91SqChn6jlO
--HG--
extra : rebase_source : 6254f99af8b4b08857961cebd8491264bfb9b8f5
2017-05-23 17:13:15 +08:00
Honza Bambas
ebccd7c5cc
Bug 1363037 - Add missing gfxVR.h include to VRServiceTest.h to fix bustage. r=kip
...
--HG--
extra : amend_source : 8cef725e5c92c2f472e8299356e67afa67bb4c4e
2017-05-08 07:34:00 -04:00
Wes Kocher
226702fd85
Merge m-c to autoland a=merge
...
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Daosheng Mu
3a6ad95915
Bug 1355648 - Part 3: Set position and orientation IsValid properties for GamepadPose tests; r=kip
...
MozReview-Commit-ID: 29sjo3yhg98
--HG--
extra : rebase_source : afb483713a3e895d81e20d4d8dc3861679f1781e
2017-04-26 13:17:25 +08:00
Daosheng Mu
5c82b1eda6
Bug 1351547 - Part 1: Add WebVR Canvas2D mochitest for detecting crash; r=kip
...
MozReview-Commit-ID: DA8Lx3jGQ4p
---
dom/vr/test/mochitest.ini | 2 ++
dom/vr/test/test_vrDisplay_canvas2d.html | 51 ++++++++++++++++++++++++++++
dom/vr/test/test_vrDisplay_exitPresent.html | 1 -
dom/vr/test/test_vrDisplay_getFrameData.html | 2 +-
4 files changed, 54 insertions(+), 2 deletions(-)
create mode 100644 dom/vr/test/test_vrDisplay_canvas2d.html
2017-04-26 07:00:04 +02:00
Daosheng Mu
324dd505d3
Bug 1358010 - Skip vr mochitests when running on release and non-Windows platforms; r=kip
...
MozReview-Commit-ID: 7TeTXyIfrh
--HG--
extra : rebase_source : 2ac584213841fa7cd47c5678b4d80fbb3bf53b8b
2017-04-20 21:11:17 +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
be29a03181
Bug 1354206 - Prevent VRDisplay.requestAnimationFrame from succeeding after shutdown r=daoshengmu
...
MozReview-Commit-ID: LDw9nH60VCm
--HG--
extra : rebase_source : b8fbcf7573e7c0876293636ac094944f39c000b1
2017-04-12 16:22:29 -07:00
Chih-Yi Leu
068467ef9a
Bug 1311802 - Part3 - Initialize VRHMDSensorstate in VRMockDisplay to prevent crash; r=daoshengmu
...
MozReview-Commit-ID: ArGz64pDgZ7
--HG--
extra : rebase_source : ec2fdd91a1adce3493ebe71f195415416b1d3693
2017-03-30 16:42:25 +08:00
Chih-Yi Leu
990edba4be
Bug 1311802 - Part2 - Add Mochitest implementation; r=daoshengmu
...
MozReview-Commit-ID: K9Z0AWIi9Yp
MozReview-Commit-ID: DJ8lO4zsFjn
--HG--
extra : rebase_source : 2501f6b6a20e23e4104a58ea51082abf817e77af
2017-03-30 12:02:37 +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
Andrew McCreight
bb0ab7f9cb
Bug 1353877 - Don't leak intermediate string in VRServiceTest::AttachVRDisplay. r=froydnj
...
MozReview-Commit-ID: AR5nTS6KULg
--HG--
extra : rebase_source : a8bd7865ce50984e800076fb3032592542843df8
2017-04-05 15:01:28 -07:00
Kearwood Gilbert
f12b0d6228
Bug 1353481 - When vrdisplayactivate is triggered by link traversal, VRDisplay.requestPresent should relax the user gesture requirement r=daoshengmu
...
MozReview-Commit-ID: 8viFBiY8A6m
--HG--
extra : rebase_source : 67ad50e7c6389d2fa6406aef4a979a50fc744c8d
2017-04-04 11:27:14 -07: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
965c09b783
Bug 1311802 - Part3 - Initialize VRHMDSensorstate in VRMockDisplay to prevent crash; r=daoshengmu
...
MozReview-Commit-ID: ArGz64pDgZ7
--HG--
extra : rebase_source : c26317b727ed8abc166ffcb6c32ca529abd3d751
2017-03-30 16:42:25 +08:00
Chih-Yi Leu
77f9b81b79
Bug 1311802 - Part2 - Add Mochitest implementation; r=daoshengmu
...
MozReview-Commit-ID: K9Z0AWIi9Yp
--HG--
extra : rebase_source : 57189d1a951785a64add14036bfd9a1f00507508
2017-03-30 12:02:37 +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
Chih-Yi Leu
6b60ce5c0a
Bug 1306505 - Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation; r=daoshengmu
...
MozReview-Commit-ID: JSOhDU565gt
--HG--
extra : rebase_source : 01641425c59f615615cc97374968382d5c9261c7
2017-03-23 10:49:45 +08:00