Commit Graph

304 Commits

Author SHA1 Message Date
Kearwood "Kip" Gilbert
c22612d2ce Bug 1404534 - Create new D3D11Device for WebVR r=dvander,jgilbert
- As we are creating a separate VR process in Bug 1362578,
  we will need our own D3D11Device.
- Eventually, we will be allowing the VR device runtimes to
  help select the appropriate adapter / device based on the
  physical connection.  This function will be updated at that
  time.

MozReview-Commit-ID: EewUkNxU3BI

--HG--
extra : rebase_source : d89dd4dcc71f2b0dc54711f50628ee3bc494b73e
2017-08-28 15:56:43 -07:00
Daosheng Mu
670a3feebf Bug 1420167 - Clean the current test system when creating a new VR test system; r=kip
MozReview-Commit-ID: KrXOjHcnszE

--HG--
extra : rebase_source : e51207efd574babd17b2089b7e86c7586a54cb93
2017-11-29 11:27:30 +08:00
Daosheng Mu
87c982950e Bug 1419344 - Adjust OpenVR input mapping for Microsoft Mixed Reality controllers. r=kip
MozReview-Commit-ID: 2NzaDM9iXrB
2017-11-27 21:55:50 -05:00
Daosheng Mu
204ca9c9df Bug 1415762 - Cancel VRListener task when CompositorVsyncScheduler is going to destroy; r=dvander
MozReview-Commit-ID: CB5JrDGZTu1

--HG--
extra : rebase_source : 4a6f65f4aaf2c11f2dad1a471f0cb219470f1dbe
2017-11-13 11:33:33 +08:00
Daosheng Mu
395b4fcfac Bug 1418879 - Refine dom/vr and gfx/vr to fit with static-analysis; r=kip
MozReview-Commit-ID: K1r5NgQuuPK

--HG--
extra : rebase_source : 23a7d8d1ed9d1f6caa6a160afd969d21a69b5d6e
2017-11-20 12:00:31 +08:00
Ryan VanderMeulen
f09d55fcf6 Backed out changeset f296220f4117 (bug 1415762) for frequently crashing with mozilla::BlockingResourceBase::CheckAcquire(), RtlEnterCriticalSection and _pthread_mutex_lock. 2017-11-10 16:06:34 -05:00
Daosheng Mu
6e5d5d2b20 Bug 1411838 - Part 2: Fix non thread-safe objects in VR; r=kip
MozReview-Commit-ID: EzbNWU17qAP

--HG--
extra : rebase_source : ab04d09ad82b6e4acd6f20d60108672d20e0b843
2017-11-09 10:54:36 +08:00
Daosheng Mu
11ecbe54cb Bug 1411838 - Part 1: Enable WebVR reftest for Windows debug; r=kip
MozReview-Commit-ID: A8drAvmATUZ

--HG--
extra : rebase_source : a1d91e76d42afa3c0f3479918d376159409585dc
2017-11-09 10:52:22 +08:00
Noemi Erli
8d8df3ddfe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-10 12:43:53 +02:00
Daosheng Mu
08ffc52b07 Bug 1415762 - Cancel VRListener task when CompositorVsyncScheduler is going to destroy; r=dvander
MozReview-Commit-ID: F25LE5Ru9gz

--HG--
extra : rebase_source : c870e2a987fd4a113d67e6672eb1e53a030fad65
2017-11-09 11:41:15 +08:00
Randall Barker
b2e368e0ca Bug 1413362 - part 2: Gecko gfx/vr GVR WebVR implementation r=kip,daoshengmu
MozReview-Commit-ID: HWaXhQo0VML
2017-11-07 10:50:14 -08:00
Sebastian Hengst
f2944960ec Backed out 3 changesets (bug 1413362) for causing merge conflicts. r=merge a=merge
Backed out changeset 8b15dfaeecaa (bug 1413362)
Backed out changeset 2d9da0d19d04 (bug 1413362)
Backed out changeset 653c66220a5f (bug 1413362)

--HG--
extra : amend_source : e5c12297b0bb6ebe27a2481e4aac6c0ca8160a1b
2017-11-07 12:41:11 +02:00
Randall Barker
b1f0bd8a25 Bug 1413362 - part 2: Gecko gfx/vr GVR WebVR implementation r=kip,daoshengmu
MozReview-Commit-ID: HWaXhQo0VML
2017-11-06 17:43:28 -08:00
Phil Ringnalda
e0e1cf4354 Backed out 4 changesets (bug 1406327) for crashing other tests, crashing itself, and assertion failures
Backed out changeset 471c710b19b1 (bug 1406327)
Backed out changeset 5890bb3a0d97 (bug 1406327)
Backed out changeset 63c8ee57e38c (bug 1406327)
Backed out changeset 345972733daa (bug 1406327)

MozReview-Commit-ID: IwWx11QSuS4
2017-11-01 21:44:12 -07:00
Daosheng Mu
f10ab3c49f Bug 1406327 - Part 4: RefreshVRDisplays needs to be at VRListenerThread; r=kip
MozReview-Commit-ID: KuhPFqMhTDB

--HG--
extra : rebase_source : 53dac47c5ede72acbe2760f056ca88f8cbc0c6b9
2017-11-01 22:15:06 +08:00
Daosheng Mu
1b3cb570af Bug 1406327 - Part 3: VRSystemManager for multi-threads; r=kip
MozReview-Commit-ID: 4bE5hruFcT2

--HG--
extra : rebase_source : e1184bbd96c7c5663e04db85d4d2c0f44bf4dcd6
2017-10-26 17:45:44 +08:00
Daosheng Mu
292c24950b Bug 1406327 - Part 2: When loading VR content, launching the VR listener thread; r=kip
MozReview-Commit-ID: IyBzJyDEVdv

--HG--
extra : rebase_source : d626c4b0ce7c5ca2a1bda6cb6b8d0d42a4d09e1d
2017-10-26 17:28:37 +08:00
Daosheng Mu
a04c759f89 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 : fff277f9801760fa00261283fbc1ca42b59a8fd8
2017-10-26 16:51:14 +08:00
Kearwood "Kip" Gilbert
efffd1d8b9 Bug 1413357 - Remove VRManagerChild::RecvParentAsyncMessages r=daoshengmu
- This IPC is no longer used and can be removed to simplify
  the PVRManager protocol.
MozReview-Commit-ID: Kno5CHkI17K

--HG--
extra : rebase_source : 227e36b00bc2d6a3b83b48d80fbfdfe35196057d
2017-10-31 15:53:50 -07:00
Nika Layzell
ff8b5bd178 Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug
These were originally exposed directly as static methods on nsGlobalWindow, but
as they are clearly associated with either the inner or outer window, it makes
more sense for them to be called as such.

MozReview-Commit-ID: LFq8EfnhDlo
2017-11-09 10:44:47 -05:00
Nika Layzell
3409141758 Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.

MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Attila Craciun
77253e619f Backed out changeset 996d843e1eb8 (bug 1406327) for failing dom/vr/test/mochitest/test_vrController_displayId.html r=backout on a CLOSED TREE. 2017-11-01 11:15:09 +02:00
Attila Craciun
cbf1069efe Backed out changeset aa67335856eb (bug 1406327) for failing dom/vr/test/mochitest/test_vrController_displayId.html r=backout on a CLOSED TREE. 2017-11-01 11:15:01 +02:00
Attila Craciun
3f2f6291d0 Backed out changeset 81c384a01762 (bug 1406327) for failing dom/vr/test/mochitest/test_vrController_displayId.html r=backout on a CLOSED TREE. 2017-11-01 11:14:41 +02:00
Daosheng Mu
ff91e4857a Bug 1406327 - Part 3: VRSystemManager for multi-threads; r=kip
MozReview-Commit-ID: 4bE5hruFcT2

--HG--
extra : rebase_source : 39a1f7de6930a3d0b78387c9b8a3555c638cfc0a
2017-10-26 17:45:44 +08:00
Daosheng Mu
6cded82cb0 Bug 1406327 - Part 2: When loading VR content, launching the VR listener thread; r=kip
MozReview-Commit-ID: IyBzJyDEVdv

--HG--
extra : rebase_source : c4d11a77045d8baef94002e4f42e8cea5148e900
2017-10-26 17:28:37 +08:00
Daosheng Mu
1726d42a0c 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
Phil Ringnalda
1e756a27c8 Backed out 3 changesets (bug 1406327) for bustage in tests that run after the VM tests
Backed out changeset 1784a194ced8 (bug 1406327)
Backed out changeset 44cb5451bbde (bug 1406327)
Backed out changeset e1e57d418c14 (bug 1406327)

MozReview-Commit-ID: HUN1rEqAIWf
2017-10-31 22:33:41 -07:00
Daosheng Mu
17c0316bd9 Bug 1406327 - Part 3: VRSystemManager for multi-threads; r=kip
MozReview-Commit-ID: 4bE5hruFcT2

--HG--
extra : rebase_source : 39a1f7de6930a3d0b78387c9b8a3555c638cfc0a
2017-10-26 17:45:44 +08:00
Daosheng Mu
03cf16992f Bug 1406327 - Part 2: When loading VR content, launching the VR listener thread; r=kip
MozReview-Commit-ID: IyBzJyDEVdv

--HG--
extra : rebase_source : c4d11a77045d8baef94002e4f42e8cea5148e900
2017-10-26 17:28:37 +08:00
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