mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
2257145e1c
This patch launches content processes with the `MOZ_HEADLESS` env var set if they're using GTK with an X11 display (and there's no other reason they'd need GTK). The goal is to avoid exhausting Xorg's default limit of 256 clients if there are many content processes due to Fission. If these conditions are met, the content process doesn't need to eagerly connect to the X server. This does not affect the sandbox policy, and content processes can still use X if needed for, e.g., WebGL. The boolean pref `dom.ipc.avoid-gtk`, set by default, controls this feature. In the future it could also be extended to minimize GTK use with Wayland displays. Note that disabling `widget.non-native-theme.enabled`, which is also enabled by default, will restore the use of X11 in all content processes even if this pref is set; the alternative is that widgets wouldn't render in that case. This change will also save some memory for now-unnecessary instances of GTK's global state, and improve content process startup time. Remove also the temp pref dom.ipc.remote-mozIcon because it cannot work anymore with the content process being headless. Differential Revision: https://phabricator.services.mozilla.com/D112197 |
||
---|---|---|
.. | ||
AndroidNativeWindow.h | ||
AndroidSurfaceTexture.cpp | ||
AndroidSurfaceTexture.h | ||
DecomposeIntoNoRepeatTriangles.cpp | ||
DecomposeIntoNoRepeatTriangles.h | ||
ForceDiscreteGPUHelperCGL.h | ||
GfxTexturesReporter.cpp | ||
GfxTexturesReporter.h | ||
GLBlitHelper.cpp | ||
GLBlitHelper.h | ||
GLBlitHelperD3D.cpp | ||
GLConsts.h | ||
GLConsts.py | ||
GLContext.cpp | ||
GLContext.h | ||
GLContextCGL.h | ||
GLContextEAGL.h | ||
GLContextEGL.h | ||
GLContextFeatures.cpp | ||
GLContextGLX.h | ||
GLContextProvider.h | ||
GLContextProviderCGL.mm | ||
GLContextProviderEAGL.mm | ||
GLContextProviderEGL.cpp | ||
GLContextProviderGLX.cpp | ||
GLContextProviderImpl.h | ||
GLContextProviderNull.cpp | ||
GLContextProviderWayland.cpp | ||
GLContextProviderWGL.cpp | ||
GLContextProviderX11.cpp | ||
GLContextSymbols.h | ||
GLContextTypes.h | ||
GLContextWGL.h | ||
GLDebugUtils.cpp | ||
GLDebugUtils.h | ||
GLDefs.h | ||
GLLibraryEGL.cpp | ||
GLLibraryEGL.h | ||
GLLibraryLoader.cpp | ||
GLLibraryLoader.h | ||
GLReadTexImageHelper.cpp | ||
GLReadTexImageHelper.h | ||
GLScreenBuffer.cpp | ||
GLScreenBuffer.h | ||
GLTextureImage.cpp | ||
GLTextureImage.h | ||
GLTypes.h | ||
GLUploadHelpers.cpp | ||
GLUploadHelpers.h | ||
GLXLibrary.h | ||
HeapCopyOfStackArray.h | ||
moz.build | ||
MozFramebuffer.cpp | ||
MozFramebuffer.h | ||
ScopedGLHelpers.cpp | ||
ScopedGLHelpers.h | ||
SharedSurface.cpp | ||
SharedSurface.h | ||
SharedSurfaceAndroidHardwareBuffer.cpp | ||
SharedSurfaceAndroidHardwareBuffer.h | ||
SharedSurfaceANGLE.cpp | ||
SharedSurfaceANGLE.h | ||
SharedSurfaceD3D11Interop.cpp | ||
SharedSurfaceD3D11Interop.h | ||
SharedSurfaceDMABUF.cpp | ||
SharedSurfaceDMABUF.h | ||
SharedSurfaceEGL.cpp | ||
SharedSurfaceEGL.h | ||
SharedSurfaceGL.cpp | ||
SharedSurfaceGL.h | ||
SharedSurfaceGLX.cpp | ||
SharedSurfaceGLX.h | ||
SharedSurfaceIO.cpp | ||
SharedSurfaceIO.h | ||
SurfaceTypes.h | ||
WGLLibrary.h |