Commit Graph
383 Commits
Author SHA1 Message Date
Brad Werth ccc36ae933 Bug 2023443 Part 2: Add namespaces to various WR actors. r=aosmond
This gives CompositorBridgeParent its own namespace accessors, so the
pending bridge can be updated with the namespace from the
CompositorManagerParent.

Differential Revision: https://phabricator.services.mozilla.com/D292650
2026-05-27 19:27:21 +00:00
Andrew Osmond 3891ea7109 Bug 2036470 - Make PAPZ and PAPZTreeManager actors refcounted. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D298046
2026-05-14 17:03:08 +00:00
Andrew Osmond c12babe4ca Bug 2035602 - Annotate GPUProcessManager::MaybeCrashIfGpuProcessOnceStable as OOM crash if GPU process OOMed. r=gfx-reviewers,lsalzman,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D297124
2026-04-28 22:38:05 +00:00
Silaghi 26cc641dfb Revert "Bug 2023443 Part 2: Add namespaces to various WR actors. r=aosmond" for causing crashtest failures at IPC parent proccess
This reverts commit 39f0cac6d0.

Revert "Bug 2023443 Part 1: Ensure ownership of external images in various WR actors. r=gfx-reviewers,nical,aosmond"

This reverts commit aff292f9db.
2026-04-25 03:09:50 +00:00
Brad Werth 39f0cac6d0 Bug 2023443 Part 2: Add namespaces to various WR actors. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D292650
2026-04-25 02:34:47 +00:00
Jamie Nicol 8e99051731 Bug 2028516 - Ensure WebRenderLayerManager's mWrChild cannot be null. r=gfx-reviewers,lsalzman
Future patches to make WebRenderLayerManager able to be initialised
asynchronously will be made simpler if we can rely on mWrChild always
being non-null. This patch achieves this by moving the first part of
Initialize(), which creates the WebRenderBridgeChild, to a static
Create() function, which then passes the non-null WebRenderBridgeChild
to the constructor. Some existing but now redundant null checks are
removed.

Unfortunately there is a chicken or egg problem, as
WebRenderLayerManager::Create() requires a pointer to the
CompositorBridgeChild, but the CompositorBridgeChild is created by the
CompositorSession which requires the WebRenderLayerManager in order to
call CompositorBridgeChild::InitForWidget().

To solve this we remove the WebRenderLayerManager argument from
CompositorBridgeChild::InitForWidget(), and instead have the widget
call the function CompositorBridgeChild::CreateLayerManager() to
obtain the layer manager.

Differential Revision: https://phabricator.services.mozilla.com/D291522
2026-04-02 11:49:01 +00:00
Botond Ballo 3323619963 Bug 2024239 - Use specific IPC messages for flushing checkerboard reports. r=hiro
This limits the abilities of the GPU process more appropriately than
the previous approach which used a generic message that could
dispatch any observer notification.

Differential Revision: https://phabricator.services.mozilla.com/D288592
2026-03-25 21:24:07 +00:00
Sylvestre Ledru e1fe74e9e3 Bug 2023419 - Remove Emacs/Vim modelines from gfx/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287846
2026-03-16 12:52:50 +00:00
Sotaro Ikeda 1c47c07bab Bug 1958603 - Add overlay support of WebGL/WebGPU by using IDCompositionTexture with layer compositor on Windows r=gfx-reviewers,lsalzman
Overlay support of Canvas2D is not added, since it does not get performance improvement for now.

Differential Revision: https://phabricator.services.mozilla.com/D277392
2026-01-09 00:48:30 +00:00
Andrew Osmond cabf5effe5 Bug 2007374 - Only create RemoteBackbuffer threads for SWGL on Windows. r=gfx-reviewers,lsalzman
remote_backbuffer::Provider is only used for SWGL with software
compositing. When we are using SWGL + D3D11 compositing, or full
hardware WebRender, we don't use it, and if we need to fallback, we will
do so by explicitly recreating the remote compositors.

For now, until bug 2007373 is able to land, we will still create these
threads for SWGL + D3D11 compositing since it can implicitly fallback if
it is failing at CompositorD3D11 creation.

Differential Revision: https://phabricator.services.mozilla.com/D277342
2025-12-23 05:22:42 +00:00
Andrew Osmond efd1b5b9f2 Bug 2006934 - Revert bug 2001152 due to instability when failing start the GPU process. r=ipc-reviewers,gfx-reviewers,mccr8,jnicol
This was causing infinite loops during fallback, eventually resulting
in an OOM crash.

Differential Revision: https://phabricator.services.mozilla.com/D277221
2025-12-19 21:06:20 +00:00
Jamie Nicol 012cb2cb75 Bug 2001152 - Make PCompositorBridge::Initialize async. r=aosmond,ipc-reviewers,mccr8
This call being synchronous currently ensures that
CompositorBridgeParent::RecvInitialize() has completed prior to
GPUParent::RecvInitAPZInputBridge() or
GPUParent::RecvInitUiCompositorController() being called. These both
require that the LayerTreeState corresponding to their aRootLayersId
has already been added to the map.

By moving these messages from PGPU to PCompositorBridge we can
guarantee this ordering while making Initialize() asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D273239
2025-11-24 16:00:10 +00:00
Jamie Nicol be434283b5 Bug 2001152 - Initialize UiCompositorController along with rest of CompositorSession. r=aosmond
Instead of doing it just afterwards. The motivation for this is to
provide access to the CompositorBridgeChild when initializing the
UiCompositorController, which will be required by the next patch in
the series.

This should have no effect in the successful case. In case of failure,
however, it will now take the OnProcessUnexpectedShutdown() path and
perhaps retry creating the GPU process, rather than just immediately
disabling it. This brings it in line with how we handle failure to
create the session's other actors.

Differential Revision: https://phabricator.services.mozilla.com/D273238
2025-11-24 16:00:07 +00:00
Cristina Horotan f37ec715c2 Revert "Bug 2001152 - Make PCompositorBridge::Initialize async. r=aosmond,ipc-reviewers,mccr8" for causing build bustage at RefPtr.h
This reverts commit c19fcf010e.

Revert "Bug 2001152 - Initialize UiCompositorController along with rest of CompositorSession. r=aosmond"

This reverts commit cbe021867d.
2025-11-24 11:55:12 +00:00
Jamie Nicol c19fcf010e Bug 2001152 - Make PCompositorBridge::Initialize async. r=aosmond,ipc-reviewers,mccr8
This call being synchronous currently ensures that
CompositorBridgeParent::RecvInitialize() has completed prior to
GPUParent::RecvInitAPZInputBridge() or
GPUParent::RecvInitUiCompositorController() being called. These both
require that the LayerTreeState corresponding to their aRootLayersId
has already been added to the map.

By moving these messages from PGPU to PCompositorBridge we can
guarantee this ordering while making Initialize() asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D273239
2025-11-24 10:13:03 +00:00
Jamie Nicol cbe021867d Bug 2001152 - Initialize UiCompositorController along with rest of CompositorSession. r=aosmond
Instead of doing it just afterwards. The motivation for this is to
provide access to the CompositorBridgeChild when initializing the
UiCompositorController, which will be required by the next patch in
the series.

This should have no effect in the successful case. In case of failure,
however, it will now take the OnProcessUnexpectedShutdown() path and
perhaps retry creating the GPU process, rather than just immediately
disabling it. This brings it in line with how we handle failure to
create the session's other actors.

Differential Revision: https://phabricator.services.mozilla.com/D273238
2025-11-24 10:13:00 +00:00
Jamie Nicol b8e5f0230d Bug 1993818 - Don't add battery observer after xpcom-will-shutdown. r=bradwerth
In bug 1981068 we made GPUProcessManager remove its battery observer
in xpcom-will-shutdown rather than xpcom-shutdown, to ensure there are
no outstanding observers when MacPowerInformationService shuts down in
response to xpcom-shutdown. However, if the GPU process launch
completes after xpcom-will-shutdown but before xpcom-shutdown, then we
will create a new battery observer, causing the assertion that there
are no outstanding observers during xpcom-shutdown to fail.

This patch avoids this by checking the shutdown phase prior to
creating the observer. Temporarily running without the observer is
harmless, and the GPU process will be shutdown imminently anyway.

Differential Revision: https://phabricator.services.mozilla.com/D272843
2025-11-18 08:44:15 +00:00
Brad Werth 2e834c389b Bug 1985327 Part 1: Elevate the priority of gpu process at process launch. r=gfx-reviewers,lsalzman
This one-time sets the priority of the gpu process, which should have a
lasting effect, because it's not set anywhere else.

Differential Revision: https://phabricator.services.mozilla.com/D272101
2025-11-13 00:45:33 +00:00
agoloman 98c65944dc Revert "Bug 1985327 Part 3: Make Linux process kill heuristic handle PROCESS_PRIORITY_FOREGROUND_HIGH. r=aosmond" for causing build bustages @LinuxProcessPriority.cpp.
This reverts commit 58ac339f24.

Revert "Bug 1985327 Part 2: Make Windows handle PROCESS_PRIORITY_FOREGROUND_HIGH. r=gfx-reviewers,lsalzman"

This reverts commit 0c524cd109.

Revert "Bug 1985327 Part 1: Elevate the priority of gpu process at process launch. r=gfx-reviewers,lsalzman"

This reverts commit d251e90a0e.
2025-11-12 18:11:06 +00:00
Brad Werth d251e90a0e Bug 1985327 Part 1: Elevate the priority of gpu process at process launch. r=gfx-reviewers,lsalzman
This one-time sets the priority of the gpu process, which should have a
lasting effect, because it's not set anywhere else.

Differential Revision: https://phabricator.services.mozilla.com/D272101
2025-11-12 17:39:46 +00:00
Andrew Osmond 2f8d18d9bd Bug 1998068 - Streamline device reset handling to avoid duplicates and incompletes. r=gfx-reviewers,bradwerth
This patch simplifies that device reset logic to ensure that we always
finish completing a device reset, regardless of our present state. This
is because once we are in the middle of a device reset, we fail to
create new compositor sessions. So even if we managed to somehow
partially recover (particularly from the Windows perspective) or never
had a full reset, we should always complete the transaction to make the
parent process recreate all of its compositor sessions, in process or
remote.

We also now unify that device reset handling from nsWindow::Paint on
Windows so that if there are multiple pathways we trigger the same
device reset, we will always complete handling it properly.

Differential Revision: https://phabricator.services.mozilla.com/D271126
2025-11-05 15:14:55 +00:00
Andrew Osmond bcf14f680d Bug 1992857 - Avoid disabling GPU process when backgrounded on Android. r=jnicol
This patch makes it so that we silently fail to setup the GPU process
and its associated IPDL actors on Android when we are in the background.
This is because Android limits our ability to keep a GPU process when
backgrounded, and the higher levels should have an ability to recover
from this situation for content processes when brought back into the
foreground. It also resets the unstable and launch attempt counters when
the fore/background state changes to be more forgiving of GPU process
crashes during the transitions.

When the GPU process is relaunched, it will also destroy the fallback
renderers created on Android, so that the next paint will properly
request remote compositing.

Differential Revision: https://phabricator.services.mozilla.com/D267679
2025-11-04 23:34:42 +00:00
Andrew Osmond ece8a53a92 Bug 1997848 - Fallback from acceleration for compositor session creation errors. r=gfx-reviewers,lsalzman
Simulating device resets for parent process compositing is problematic
because we need to dispatch to handle device resets, but the compositor
session creation never lets go of the main thread to allow those events
to be processed.

In reality most platforms have a GPU process now, and if we disable the
GPU process, we use Software WebRender, for which a simulated device
reset is unlikely to help anyways. The only exception is on Linux, but
it is not that common to fail to create a compositor, so it is probably
okay to fall back to Software WebRender right away.

Similarly, killing the GPU process is also a problem for the same
reason. We need to clean up inline, and there are some reentrancy
concerns. Once we investigate those, we can land a later patch to
re-enable this for the compositor session path.

Differential Revision: https://phabricator.services.mozilla.com/D271214
2025-11-04 16:07:24 +00:00
Andrew Osmond 4f2aa402bb Bug 1996880 - Rework GPUProcessManager::EnsureGPUReady to better handles failures. r=gfx-reviewers,lsalzman
This patch reduces the complexity in EnsureGPUReady to account for
different failure scenarios that are not properly handled with the
current logic.

We can fail to initialize a GPU process because:
1) We are already in shutdown.
2) The initial launch request itself fails.
3) The launch response fails.
4) The GPUChild actor fails its first sync IPDL call.

We were failing to account for the fact that 4) can both fail, and not
disable the GPU process to allow for a retry of the launch.

Now instead we simplify the logic to:
1) Early exit for the most common success cases.
2) Only check for shutdown once after that.
3) Reduce the necessary logic, trusting (with asserts) that the
   expected methods will be called to set our state correctly.
4) Make disabling WebRender without restarting the GPU process perform
   the necessary synchronization inline, since it is going to happen
   shortly anyways due to the config change and compositor resets.

Differential Revision: https://phabricator.services.mozilla.com/D270555
2025-10-29 17:51:17 +00:00
Andrew Osmond 8da01c86fb Bug 1996793 - Remove GPUProcessManager::EnsureGPUReady call in CreateContentBridges. r=gfx-reviewers,jnicol
No need to add a diagnostic assert because the other CreateContent
methods already assert.

Differential Revision: https://phabricator.services.mozilla.com/D270317
2025-10-28 18:14:03 +00:00
Andrew Osmond 9cc6b78dc0 Bug 1996352 - Refactor GPUProcessManager::AllocateAndConnectLayerTreeId to simplify/clarify. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D270030
2025-10-24 20:03:17 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Andrew Osmond 3d6bd9cfb3 Bug 1993758 - Rework how RDD/utility processes initialize PVideoBridge with the GPU process. r=gfx-reviewers,lsalzman
This avoids calls to GPUProcessManager::EnsureGPUReady as well as making
it more manageable to avoid relaunching the GPU process while in the
background on Android.

Differential Revision: https://phabricator.services.mozilla.com/D269115
2025-10-20 19:25:44 +00:00
Serban Stanca 54afadf9a3 Revert "Bug 1993758 - Rework how RDD/utility processes initialize PVideoBridge with the GPU process. r=gfx-reviewers,lsalzman" for causing VideoBridge related failures.
This reverts commit 8fbbb50184.
2025-10-20 04:25:55 +00:00
Andrew Osmond 8fbbb50184 Bug 1993758 - Rework how RDD/utility processes initialize PVideoBridge with the GPU process. r=gfx-reviewers,lsalzman
This avoids calls to GPUProcessManager::EnsureGPUReady as well as making
it more manageable to avoid relaunching the GPU process while in the
background on Android.

Differential Revision: https://phabricator.services.mozilla.com/D269115
2025-10-20 03:26:59 +00:00
Andrew Osmond 98b6d62516 Bug 1994241. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D268585
2025-10-14 21:50:22 +00:00
Andrew Osmond 8293e7f1d6 Bug 1994213 - Switch IsGPUReady asserts to be diagnostic asserts. r=gfx-reviewers,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D268577
2025-10-14 21:47:49 +00:00
Andrew Osmond 670d3ef0ae Bug 1994188 - Remove duplicate calls to GPUProcessManager::EnsureGPUReady on nsBaseWidget::CreateCompositor paths. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D268542
2025-10-14 19:08:06 +00:00
Emilio Cobos Álvarez cc2759f7e5 Bug 1994157 - Remove nsBaseWidget. r=stransky,win-reviewers,gstoll
The distinction between nsBaseWidget and nsIWidget is useless as all our
implementations use the former.

So just merge both.

Differential Revision: https://phabricator.services.mozilla.com/D268518
2025-10-14 15:19:51 +00:00
Andrew Osmond 84a3580bbf Bug 1993742 - Consolidate GPUProcessManager::EnsureGPUReady calls when setting up IPDL actors. r=gfx-reviewers,lsalzman
This should have no functional change, but does make it easier to reason
about what call paths depend on EnsureGPUReady by removing the
redundancy, and making the error codes it returns clearer/more obvious.

Differential Revision: https://phabricator.services.mozilla.com/D268277
2025-10-10 21:52:55 +00:00
Serban Stanca 2ddc61044e Revert "Bug 1993742 - Consolidate GPUProcessManager::EnsureGPUReady calls when setting up IPDL actors. r=gfx-reviewers,lsalzman" for causing GPU process crashes.
This reverts commit 3ae6567b84.
2025-10-10 18:49:38 +00:00
Andrew Osmond 3ae6567b84 Bug 1993742 - Consolidate GPUProcessManager::EnsureGPUReady calls when setting up IPDL actors. r=gfx-reviewers,lsalzman
This should have no functional change, but does make it easier to reason
about what call paths depend on EnsureGPUReady by removing the
redundancy, and making the error codes it returns clearer/more obvious.

Differential Revision: https://phabricator.services.mozilla.com/D268277
2025-10-10 18:16:27 +00:00
Andrew Osmond 8c871c264e Bug 1993562 - Remove call to EnsureGPUReady in GPUProcessManager::GetProcessMemoryReporter. r=gfx-reviewers,lsalzman
We only need to wait for a GPU process to finish launching if it is in
progress, so that we can include it in the report.

Differential Revision: https://phabricator.services.mozilla.com/D268197
2025-10-10 02:43:32 +00:00
Atila Butkovits a319c525f0 Revert "Bug 1993562 - Remove call to EnsureGPUReady in GPUProcessManager::GetProcessMemoryReporter. r=gfx-reviewers,lsalzman" for causing bustages complaining about sccache.
This reverts commit a0b092e385.
2025-10-10 00:26:43 +00:00
Andrew Osmond 1becf778fc Bug 1993594 - Ensure when Firefox is backgrounded on Android that the GPU process is not recorded as stable. r=gfx-reviewers,lsalzman
While we want to treat backgrounding as a situation where we expect the
GPU process to crash, we don't want to record it as having been once
stable for the purposes of crashing the parent process. Otherwise that
will cause users who background Firefox immediately after launch to
supposedly have had a stable GPU process, and crash the parent if we
want to fallback to the parent process for compositing.

Differential Revision: https://phabricator.services.mozilla.com/D268215
2025-10-09 23:54:29 +00:00
Andrew Osmond a0b092e385 Bug 1993562 - Remove call to EnsureGPUReady in GPUProcessManager::GetProcessMemoryReporter. r=gfx-reviewers,lsalzman
We only need to wait for a GPU process to finish launching if it is in
progress, so that we can include it in the report.

Differential Revision: https://phabricator.services.mozilla.com/D268197
2025-10-09 23:50:15 +00:00
Andrew Osmond 7b8ddfce05 Bug 1993553 - Remove call to EnsureGPUReady in GPUProcessManager::UnmapLayerTreeId. r=gfx-reviewers,lsalzman
This reduces the pathways from which we can create a GPU process. In
this case, it should not be necessary because we either 1) have a GPU
process already, in which case we can send an IPDL message to destroy
it, 2) are compositing in the parent process, in which case we won't
relaunch it, or 3) we don't have a GPU process at this moment, but need
one, and the layer ID isn't valid anyways.

Differential Revision: https://phabricator.services.mozilla.com/D268189
2025-10-09 23:49:32 +00:00
Andrew Osmond 3e24261734 Bug 1993558 - Remove call to EnsureGPUReady in GPUProcessManager::NotifyGpuObservers. r=gfx-reviewers,lsalzman
This is only used by APZ right now, and if the GPU process had to be
launched to dispatch this observer event, there would have been no state
to update, so we can just refuse to dispatch.

Differential Revision: https://phabricator.services.mozilla.com/D268196
2025-10-09 23:49:10 +00:00
Andrew Osmond b77e723fc7 Bug 1987906. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D266841
2025-10-03 16:27:15 +00:00