gecko-dev/gfx/gl
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
..
AndroidNativeWindow.h
AndroidSurfaceTexture.cpp Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
AndroidSurfaceTexture.h
DecomposeIntoNoRepeatTriangles.cpp Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/ r=mstange 2019-07-10 05:25:54 +00:00
DecomposeIntoNoRepeatTriangles.h Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/ r=mstange 2019-07-10 05:25:54 +00:00
ForceDiscreteGPUHelperCGL.h
GfxTexturesReporter.cpp Bug 1567329 - Append _AtStartup to once static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
GfxTexturesReporter.h
GLBlitHelper.cpp
GLBlitHelper.h
GLBlitHelperD3D.cpp Bug 1560157 - Remove EGLUtils.h. r=lsalzman 2019-06-21 16:53:09 +00:00
GLConsts.h Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot 2019-05-23 20:48:21 +00:00
GLContext.cpp Bug 1567329 - Append _AtStartup to once static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
GLContext.h Bug 1557577 - Remove GLContext::fDrawRangeElements. r=lsalzman 2019-06-07 10:20:19 +00:00
GLContextCGL.h Bug 1565668 - Add support for using an IOSurface as the default framebuffer for a GLContextCGL. r=jgilbert 2019-07-17 20:44:44 +00:00
GLContextEAGL.h
GLContextEGL.h Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
GLContextFeatures.cpp Bug 1528881 - Part 5: gfx/gl: Make some global functions static. r=jgilbert 2019-06-14 23:42:59 +00:00
GLContextGLX.h
GLContextProvider.h
GLContextProviderCGL.mm Bug 1565668 - Create a depth buffer for the default framebuffer of a GLContext that is used with WebRender. r=jgilbert 2019-07-17 20:45:53 +00:00
GLContextProviderEAGL.mm Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
GLContextProviderEGL.cpp Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
GLContextProviderGLX.cpp Bug 1561825 - Make layout.* static prefs follow the naming convention. r=KrisWright 2019-06-27 16:28:25 +10:00
GLContextProviderImpl.h
GLContextProviderNull.cpp
GLContextProviderWayland.cpp
GLContextProviderWGL.cpp Bug 1561491 - Make gl.* static prefs follow the naming convention. r=KrisWright 2019-06-26 13:05:06 +10:00
GLContextSymbols.h Bug 1557577 - Remove GLContext::fDrawRangeElements. r=lsalzman 2019-06-07 10:20:19 +00:00
GLContextTypes.h Bug 1559286 - Remove gl.msaa-level and SurfaceCaps.antialias. r=lsalzman 2019-06-14 19:09:54 +00:00
GLContextWGL.h
GLDebugUtils.cpp
GLDebugUtils.h
GLDefs.h
GLLibraryEGL.cpp Bug 1567329 - Append _AtStartup to once static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
GLLibraryEGL.h Bug 1560157 - Remove EGLUtils.h. r=lsalzman 2019-06-21 16:53:09 +00:00
GLLibraryLoader.cpp
GLLibraryLoader.h
GLParseRegistryXML.py Bug 1559975: Fix python2/3 compat in gfx/ r=ahal 2019-07-05 14:28:55 +00:00
GLReadTexImageHelper.cpp
GLReadTexImageHelper.h
GLScreenBuffer.cpp Bug 1562331 - Make webgl.* static prefs follow the naming convention. r=KrisWright 2019-06-29 07:56:43 +10:00
GLScreenBuffer.h Bug 1559286 - Remove gl.msaa-level and SurfaceCaps.antialias. r=lsalzman 2019-06-14 19:09:54 +00:00
GLTextureImage.cpp
GLTextureImage.h
GLTypes.h
GLUploadHelpers.cpp
GLUploadHelpers.h
GLXLibrary.h
HeapCopyOfStackArray.h
moz.build Bug 1565668 - Add support for using an IOSurface as the default framebuffer for a GLContextCGL. r=jgilbert 2019-07-17 20:44:44 +00:00
MozFramebuffer.cpp
MozFramebuffer.h
ScopedGLHelpers.cpp Bug 1442825 - Remove ScopedGLWrapper base class. r=lsalzman 2019-06-17 06:40:27 +00:00
ScopedGLHelpers.h Bug 1442825 - Remove ScopedGLWrapper base class. r=lsalzman 2019-06-17 06:40:27 +00:00
SharedSurface.cpp Bug 1546192 - Check SharedSurface_Basic::Create failure 2019-06-17 13:40:13 +09:00
SharedSurface.h Bug 1546192 - Check SharedSurface_Basic::Create failure 2019-06-17 13:40:13 +09:00
SharedSurfaceANGLE.cpp Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
SharedSurfaceANGLE.h
SharedSurfaceD3D11Interop.cpp Bug 1562331 - Make webgl.* static prefs follow the naming convention. r=KrisWright 2019-06-29 07:56:43 +10:00
SharedSurfaceD3D11Interop.h
SharedSurfaceEGL.cpp Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
SharedSurfaceEGL.h Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
SharedSurfaceGL.cpp
SharedSurfaceGL.h
SharedSurfaceGLX.cpp
SharedSurfaceGLX.h
SharedSurfaceIO.cpp
SharedSurfaceIO.h
SurfaceTypes.h Bug 1559286 - Remove gl.msaa-level and SurfaceCaps.antialias. r=lsalzman 2019-06-14 19:09:54 +00:00
TextureImageEGL.cpp Bug 1559524 - Reduce calls to GLLibraryEGL::Get(). r=lsalzman 2019-06-15 05:21:12 +00:00
TextureImageEGL.h
WGLLibrary.h