gecko-dev/gfx/vr
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
..
external_api Bug 1519636 - Ride along: Move to the unix CR type r=Ehsan 2019-07-16 07:34:18 +00:00
ipc Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
service Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
vrhost Bug 1519636 - Ride along: Move to the unix CR type r=Ehsan 2019-07-16 07:34:18 +00:00
VRDisplayClient.cpp Bug 1466702 - Refactor / reimplement gfxVRPuppet and VRServiceTest to use gfxVRExternal r=daoshengmu,thomasmo,bzbarsky 2019-06-28 21:19:54 +00:00
VRDisplayClient.h Bug 1466702 - Refactor / reimplement gfxVRPuppet and VRServiceTest to use gfxVRExternal r=daoshengmu,thomasmo,bzbarsky 2019-06-28 21:19:54 +00:00
VRDisplayPresentation.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
VRDisplayPresentation.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
VRManager.cpp Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
VRManager.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
VRPuppetCommandBuffer.cpp Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip 2019-07-10 03:29:57 +00:00
VRPuppetCommandBuffer.h Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip 2019-07-10 03:29:57 +00:00
VRServiceHost.cpp Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip 2019-07-10 03:29:57 +00:00
VRServiceHost.h Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip 2019-07-10 03:29:57 +00:00
VRShMem.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
VRShMem.h Bug 1519636 - Ride along: Move to the unix CR type r=Ehsan 2019-07-16 07:34:18 +00:00
VRThread.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
VRThread.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
components.conf Bug 1565295 - Create Command Line Handler for FxR on desktop r=mossop 2019-07-11 21:01:04 +00:00
gfxVR.cpp Bug 1466702 - Refactor / reimplement gfxVRPuppet and VRServiceTest to use gfxVRExternal r=daoshengmu,thomasmo,bzbarsky 2019-06-28 21:19:54 +00:00
gfxVR.h Bug 1466702 - Refactor / reimplement gfxVRPuppet and VRServiceTest to use gfxVRExternal r=daoshengmu,thomasmo,bzbarsky 2019-06-28 21:19:54 +00:00
gfxVRMutex.h Bug 1562777 - Refactor ShMem code from VR classes into separate class r=kip 2019-07-03 15:50:28 +00:00
moz.build Bug 1565295 - Create Command Line Handler for FxR on desktop r=mossop 2019-07-11 21:01:04 +00:00
nsFxrCommandLineHandler.cpp Bug 1565295 - Create Command Line Handler for FxR on desktop r=mossop 2019-07-11 21:01:04 +00:00
nsFxrCommandLineHandler.h Bug 1565295 - Create Command Line Handler for FxR on desktop r=mossop 2019-07-11 21:01:04 +00:00