gecko-dev/gfx
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
..
2d Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
angle Bug 1559975: Fix python2/3 compat in gfx/ r=ahal 2019-07-05 14:28:55 +00:00
cairo Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
config Bug 1567347 - Add option of using DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL without DirectComposition r=nical 2019-07-19 09:26:03 +00:00
docs Bug 1560149 - Add some documentation for document splitting. r=dthayer 2019-07-02 00:53:07 +00:00
gl Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
graphite2 Bug 1515629 - Update Graphite2 to version 1.3.13. r=jfkthame 2018-12-31 15:56:58 +00:00
harfbuzz Bug 1559975: Fix python2/3 compat in gfx/ r=ahal 2019-07-05 14:28:55 +00:00
ipc Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
layers Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
ots Bug 1531912 - Update OTS to 7.1.9. r=jfkthame 2019-03-02 15:32:15 +00:00
qcms Bug 1558883 - Add QCMS transform correctness and performance tests. r=miko 2019-06-25 09:45:56 -04:00
sfntly Bug 1523969 part 8 - Move method definition inline comments to new line in 'gfx/'. r=kats 2019-02-25 16:07:19 -06:00
skia Bug 1565158 - allow forcing DWrite symmetric rendering mode. r=jrmuizel 2019-07-19 03:56:50 +00:00
src Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
tests Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-07-16 07:33:44 +00:00
thebes Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
vr Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
webrender_bindings Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
wr Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-19 12:50:23 +03:00
ycbcr Bug 1561491 - Make gl.* static prefs follow the naming convention. r=KrisWright 2019-06-26 13:05:06 +10:00
moz.build Bug 1536162 - Update bugzilla component for gfx/wr. r=jrmuizel 2019-03-21 20:40:57 +00:00