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

5 Коммитов

Автор SHA1 Сообщение Дата
Daosheng Mu 35f06c3565 Bug 1496615 - Part 1: update openvr to 1.0.17. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D14631

--HG--
extra : moz-landing-system : lando
2018-12-17 20:36:28 +00:00
Nika Layzell 568787b95f Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-28 12:56:20 -05:00
arthur.iakab af07f9b9d4 Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE
Backed out changeset c3fe435e473a (bug 1509362)
Backed out changeset 6494840edc17 (bug 1509591)
Backed out changeset 123b5d5a3637 (bug 1509591)
Backed out changeset bce195f98895 (bug 1509930)
Backed out changeset 66db13126408 (bug 1500950)
Backed out changeset 3b5fffae2d2b (bug 1500949)
Backed out changeset 71c3b3677db8 (bug 1500948)
Backed out changeset 784b3b56e2ab (bug 1500944)
Backed out changeset 0bad27401ddb (bug 1500944)
Backed out changeset e0f95dd96d54 (bug 1448426)
Backed out changeset c60fa11538db (bug 1487249)
Backed out changeset 0190d4ffa54f (bug 1487249)
Backed out changeset 3cd10aba9130 (bug 1487249)
2018-11-28 02:57:32 +02:00
Nika Layzell 9f648dce32 Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-27 18:09:33 -05:00
Kearwood "Kip" Gilbert b3309c2776 Bug 1501455 - Remove gfx/vr/gfxVROculus.cpp and gfx/vr/gfxVROpenVR.cpp r=daoshengmu
Now that the VRService thread is enabled by default, we
can remove these old files.

The OpenVR 3rd party code has been moved from gfx/vr/openvr
to gfx/vr/service/openvr to be closer to the OpenVRSession
implementation.

The Oculus header (ovr_capi_dynamic.h) has been moved from
gfx/vr/ovr_capi_dynamic.h to gfx/vr/service/oculus to be
closer to the OculusSession implementation.

Differential Revision: https://phabricator.services.mozilla.com/D9600

--HG--
rename : gfx/vr/ovr_capi_dynamic.h => gfx/vr/service/oculus/ovr_capi_dynamic.h
rename : gfx/vr/openvr/LICENSE => gfx/vr/service/openvr/LICENSE
rename : gfx/vr/openvr/README.md => gfx/vr/service/openvr/README.md
rename : gfx/vr/openvr/README.mozilla => gfx/vr/service/openvr/README.mozilla
rename : gfx/vr/openvr/headers/openvr.h => gfx/vr/service/openvr/headers/openvr.h
rename : gfx/vr/openvr/moz.build => gfx/vr/service/openvr/moz.build
rename : gfx/vr/openvr/src/README => gfx/vr/service/openvr/src/README
rename : gfx/vr/openvr/src/dirtools_public.cpp => gfx/vr/service/openvr/src/dirtools_public.cpp
rename : gfx/vr/openvr/src/dirtools_public.h => gfx/vr/service/openvr/src/dirtools_public.h
rename : gfx/vr/openvr/src/envvartools_public.cpp => gfx/vr/service/openvr/src/envvartools_public.cpp
rename : gfx/vr/openvr/src/envvartools_public.h => gfx/vr/service/openvr/src/envvartools_public.h
rename : gfx/vr/openvr/src/hmderrors_public.cpp => gfx/vr/service/openvr/src/hmderrors_public.cpp
rename : gfx/vr/openvr/src/hmderrors_public.h => gfx/vr/service/openvr/src/hmderrors_public.h
rename : gfx/vr/openvr/src/ivrclientcore.h => gfx/vr/service/openvr/src/ivrclientcore.h
rename : gfx/vr/openvr/src/openvr_api_public.cpp => gfx/vr/service/openvr/src/openvr_api_public.cpp
rename : gfx/vr/openvr/src/pathtools_public.cpp => gfx/vr/service/openvr/src/pathtools_public.cpp
rename : gfx/vr/openvr/src/pathtools_public.h => gfx/vr/service/openvr/src/pathtools_public.h
rename : gfx/vr/openvr/src/sharedlibtools_public.cpp => gfx/vr/service/openvr/src/sharedlibtools_public.cpp
rename : gfx/vr/openvr/src/sharedlibtools_public.h => gfx/vr/service/openvr/src/sharedlibtools_public.h
rename : gfx/vr/openvr/src/strtools_public.cpp => gfx/vr/service/openvr/src/strtools_public.cpp
rename : gfx/vr/openvr/src/strtools_public.h => gfx/vr/service/openvr/src/strtools_public.h
rename : gfx/vr/openvr/src/vrpathregistry_public.cpp => gfx/vr/service/openvr/src/vrpathregistry_public.cpp
rename : gfx/vr/openvr/src/vrpathregistry_public.h => gfx/vr/service/openvr/src/vrpathregistry_public.h
extra : moz-landing-system : lando
2018-10-24 22:22:41 +00:00