gecko-dev/gfx/vr/service
Nicholas Nethercote 7974362afd Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 02:10:14 +00:00
..
binding Bug 1559843 - Replace VR code endling to LF. r=kip 2019-07-02 23:40:27 +00:00
oculus Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
openvr Bug 1496615 - Part 1: update openvr to 1.0.17. r=kip 2018-12-17 20:36:28 +00:00
osvr Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
OSVRSession.cpp Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
OSVRSession.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
OculusSession.cpp Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
OculusSession.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
OpenVRSession.cpp Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
OpenVRSession.h Bug 1558952 - Vive cosmos controller binding for OpenVR. r=kip 2019-06-26 18:26:16 +00:00
PuppetSession.cpp Bug 1559843 - Replace VR code endling to LF. r=kip 2019-07-02 23:40:27 +00:00
PuppetSession.h Bug 1559843 - Replace VR code endling to LF. r=kip 2019-07-02 23:40:27 +00:00
VRService.cpp Backed out changeset 3179c40a2a25 (bug 1563233) for wpt failures at webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html 2019-07-15 06:29:11 +03:00
VRService.h Backed out changeset 3179c40a2a25 (bug 1563233) for wpt failures at webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html 2019-07-15 06:29:11 +03:00
VRSession.cpp Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs 2019-07-08 09:27:47 +00:00
VRSession.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
moz.build Bug 1562497 - Build PuppetSession on Tier3 as VRService depends on it. r=daoshengmu 2019-07-04 07:41:57 +00:00