Commit Graph

68 Commits

Author SHA1 Message Date
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
Kearwood (Kip) Gilbert
d8849aea49 Bug 1235803 - Remove erroneous assertion r=dholbert
- Removed an unnecessary assertion that was erroneously triggering
  on shutdown in B2G Mochitests.

--HG--
extra : rebase_source : 1b0d997bf7610fa62d2647f5003edc47d61e3fa6
2015-12-30 14:46:38 -08:00
Kearwood (Kip) Gilbert
0c83ce5c05 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07:00
Nicholas Nethercote
d460857c94 Bug 1231256 (part 5) - Remove dead FromCSSPerspectiveInfo() function. r=vlad.
--HG--
extra : rebase_source : 495ec764ff035ec24a7c554469cb3837d8027570
2015-12-07 15:20:02 -08:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Daosheng Mu
94cce5d8aa Bug 1215143 - FF Android VR returns orientation that is 90deg off on x-axis. r=vlad 2015-10-28 09:18:00 +01:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00