gecko-dev/image/decoders
Jed Davis 2257145e1c Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika
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
2021-07-06 07:42:42 +00:00
..
icon Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika 2021-07-06 07:42:42 +00:00
EXIF.cpp Bug 1680387 - Sanity-check exif resolution with other exif metadata. r=tnikkel 2021-05-05 09:41:25 +00:00
EXIF.h Bug 1680387 - Sanity-check exif resolution with other exif metadata. r=tnikkel 2021-05-05 09:41:25 +00:00
GIF2.h
iccjpeg.c
iccjpeg.h
moz.build Bug 1707590 - Part 2: Implement nsJXLDecoder r=tnikkel 2021-05-06 02:00:57 +00:00
nsAVIFDecoder.cpp Bug 1696093 - AVIF image transform support. r=aosmond 2021-06-08 18:30:46 +00:00
nsAVIFDecoder.h Bug 1654462 - Add alpha support in nsAVIFDecoder r=jbauman 2020-12-16 01:27:14 +00:00
nsBMPDecoder.cpp Bug 1707554 - Decode bmp image where data offset is 0 r=tnikkel 2021-05-04 07:15:45 +00:00
nsBMPDecoder.h
nsGIFDecoder2.cpp Bug 1678487 - Make CMSMode an enum class. r=aosmond 2021-02-13 03:59:23 +00:00
nsGIFDecoder2.h Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00
nsICODecoder.cpp Bug 1622661 - Removed 'else' after 'return'. r=tnikkel 2020-03-31 19:27:35 +00:00
nsICODecoder.h
nsIconDecoder.cpp Bug 1678487 - Make CMSMode an enum class. r=aosmond 2021-02-13 03:59:23 +00:00
nsIconDecoder.h
nsJPEGDecoder.cpp Bug 1680387 - Sanity-check exif resolution with other exif metadata. r=tnikkel 2021-05-05 09:41:25 +00:00
nsJPEGDecoder.h Bug 1680387 - Read and expose EXIF image resolution data. r=tnikkel,aosmond 2021-05-05 09:41:23 +00:00
nsJXLDecoder.cpp Bug 1707590 - Part 2: Implement nsJXLDecoder r=tnikkel 2021-05-06 02:00:57 +00:00
nsJXLDecoder.h Bug 1707590 - Part 2: Implement nsJXLDecoder r=tnikkel 2021-05-06 02:00:57 +00:00
nsPNGDecoder.cpp Bug 1678487 - Make CMSMode an enum class. r=aosmond 2021-02-13 03:59:23 +00:00
nsPNGDecoder.h Bug 1620600 - Add flags to allow image decoders to produce sRGB output. r=tnikkel 2020-04-10 16:26:33 +00:00
nsWebPDecoder.cpp Bug 1678487 - Make CMSMode an enum class. r=aosmond 2021-02-13 03:59:23 +00:00
nsWebPDecoder.h Bug 1683557 - Make `image` buildable outside of `unified-build` environment. r=aosmond 2021-01-04 14:20:22 +00:00