Граф коммитов

31 Коммитов

Автор SHA1 Сообщение Дата
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 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
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
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
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 (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
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 (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 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
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
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 0c83ce5c05 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07: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
Vladimir Vukicevic a55a1c1deb Bug 1186608, [webvr] Add individual prefs to disable backends, set sane defaults; r=mstange 2015-04-12 23:05:36 -04:00
Vladimir Vukicevic 7cbcb3db2b Bug 1179944, [webvr] support Oculus 0.6.0 runtime and rendering; r=mstange
---
 gfx/2d/Quaternion.h                              |  10 +
 gfx/layers/Layers.h                              |   6 +-
 gfx/layers/composite/ContainerLayerComposite.cpp | 161 +++++++---
 gfx/layers/composite/ContainerLayerComposite.h   |   3 +
 gfx/thebes/gfxPrefs.h                            |   2 +
 gfx/vr/gfxVR.cpp                                 |  56 ++++
 gfx/vr/gfxVR.h                                   |  37 +++
 gfx/vr/gfxVRCardboard.cpp                        |  54 +---
 gfx/vr/gfxVROculus.cpp                           | 367 +++++++++++++++--------
 gfx/vr/gfxVROculus.h                             |  14 +-
 gfx/vr/moz.build                                 |  10 +
 gfx/vr/ovr_capi_dynamic.h                        | 261 +++++++++++-----
 modules/libpref/init/all.js                      |   3 +
 13 files changed, 694 insertions(+), 290 deletions(-)
2015-07-02 11:58:24 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Vladimir Vukicevic c57fa8fb8e Bug 1151937; [webvr] change deviceId/hardwareId to simple values; r=jrmuizel CLOSED TREE 2015-04-07 13:26:44 -04:00
Vladimir Vukicevic 8e6efd9d61 Bug 1151904; fix Linux OVR library typo to use lowercase lib; r=me 2015-04-07 14:19:11 -04:00
Vladimir Vukicevic 5955e06b36 Bug 1149781; [webvr] Update Oculus API to use 0.5.x SDK; Mac startup crash fix; r=dbaron, a=startup-crash
--HG--
extra : amend_source : a6cb311db1f5bbfc2cae5b89b67e03087641565f
2015-04-02 00:27:25 -04:00
Vladimir Vukicevic 0e15f05bda Bug 1149781; Update Oculus runtime for new SDK 0.5; r=jrmuizel 2015-04-01 16:02:21 -04:00
Vladimir Vukicevic 24157e2002 Bug 1148009; Add support for Cardboard (and other rotation-sensor based VR) in Firefox for Android; r=jrmuizel 2015-04-01 16:02:20 -04:00
Vladimir Vukicevic 1e5251137d Bug 1148009; [webvr] Move distortion vertex struct into more generic system; r=jrmuizel 2015-04-01 16:02:20 -04:00
Vladimir Vukicevic 8e37e99593 Bug 1148009; [webvr] Split out gfxVROculus from gfxVR, refactor VRHMDManager; r=jrmuizel 2015-04-01 16:02:20 -04:00