Commit Graph
420 Commits
Author SHA1 Message Date
Sylvestre Ledru 6fd783649e Bug 2036402 - Apply std::move in widget where values can be moved instead of copied r=win-reviewers,handyman
Differential Revision: https://phabricator.services.mozilla.com/D298104
2026-05-04 19:01:26 +00:00
Andrew Osmond 742b9c4317 Bug 2032515 - Part 3. Remove WebGL prefs to allow running in the content process. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D295355
2026-04-28 23:50:54 +00:00
Andrew Osmond aec1279604 Bug 2034798 - Refactor gfx blocklist macros to prevent common mistakes. r=gfx-reviewers,lsalzman,bradwerth
This patch adds static asserts to prevent allowlist statuses to be
used with non-allowlist features, as well as prevent retired
features from being used. It also removes the name/ID split for
most features where they are the same.

Differential Revision: https://phabricator.services.mozilla.com/D296378
2026-04-24 20:24:59 +00:00
Helena 0c3974286e Bug 2023270 - Replace uses of OS X and OSX with macOS in widget/cocoa. r=mac-reviewers,shtrom,bradwerth,spohl
Differential Revision: https://phabricator.services.mozilla.com/D290264
2026-04-02 21:55:39 +00:00
Andrew Osmond 89ea7e7890 Bug 2027455 - Disable WebGL if GPU process disabled on platforms with a GPU process. r=gfx-reviewers,jrmuizel,nical
Differential Revision: https://phabricator.services.mozilla.com/D289934
2026-03-29 14:37:07 +00:00
Atila Butkovits 16fdd6ac6d Revert "Bug 2027455 - Disable WebGL if GPU process disabled on platforms with a GPU process. r=gfx-reviewers,jrmuizel,nical" for causing reftest failures at color_quads.html?e_context=webgl.
This reverts commit 23d788136e.
2026-03-29 04:21:50 +00:00
Andrew Osmond 23d788136e Bug 2027455 - Disable WebGL if GPU process disabled on platforms with a GPU process. r=gfx-reviewers,jrmuizel,nical
Differential Revision: https://phabricator.services.mozilla.com/D289934
2026-03-29 02:18:04 +00:00
Atila Butkovits 1b5d9ca620 Revert "Bug 2027455 - Disable WebGL if GPU process disabled on platforms with a GPU process. r=gfx-reviewers,jrmuizel,nical" for causing failures at test_webgl_debug_renderer_info.html.
This reverts commit c31e7e937a.
2026-03-28 21:40:55 +00:00
Andrew Osmond c31e7e937a Bug 2027455 - Disable WebGL if GPU process disabled on platforms with a GPU process. r=gfx-reviewers,jrmuizel,nical
Differential Revision: https://phabricator.services.mozilla.com/D289934
2026-03-28 20:33:55 +00:00
Nika Layzell 5f0f9dd22a Bug 2020817 - Part 4: Annotate & clean up nsACString callers of BeginReading/Data, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,toolkit-telemetry-reviewers-rotation,layout-reviewers,dom-worker-reviewers,gfx-reviewers,webgpu-reviewers,necko-reviewers,dom-core,smaug,handyman,emilio,pehrsons,kershaw,timhuang,edenchuang,padenot,bradwerth
This is a large number of largely mechanical changes. When possible, the code
was called to directly call `.get()` instead, performing the assertions
manually. In many places PromiseFlatCString() calls were added to dynamically
copy the strings into null terminated buffers if the string was not null
terminated.

Differential Revision: https://phabricator.services.mozilla.com/D286158
2026-03-25 08:23:04 +00:00
Sylvestre Ledru 4f6b8b516d Bug 2023419 - Remove Emacs/Vim modelines from widget/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287877
2026-03-16 17:22:02 +00:00
serge-sans-paille e8c55440a6 Bug 2010520 - Use .inc extension for X macro files in widget/ r=geckoview-reviewers,win-reviewers,gstoll,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D279131
2026-01-17 20:37:51 +00:00
Sotaro Ikeda 16145e51b4 Bug 2009107 - Remove gfx::Feature::OMTP r=gfx-reviewers,nical
gfx::Feature::OMTP is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D278235
2026-01-12 15:16:05 +00:00
Andrew Osmond dc28461245 Bug 2000004 - Remove warning about unrecognized gfx feature. r=gfx-reviewers,bradwerth
With the downloadable blocklist, this can happen because we added or
removed a feature.

Differential Revision: https://phabricator.services.mozilla.com/D273240
2025-11-19 20:50:18 +00:00
serge-sans-paille b167b659f1 Bug 1999704 - Remove unused STL header inclusions in widget/** r=win-reviewers,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D272277
2025-11-13 10:27:21 +00:00
Lee Salzman eb2a933234 Bug 1996186 - Remove Remote Canvas. r=aosmond
Remote canvas only works with Direct2D (which has been removed) and has been superceded by Accelerated Canvas2D.
Thus, it is safe to remove remote canvas since it can no longer be enabled.

Differential Revision: https://phabricator.services.mozilla.com/D269928
2025-10-27 02:57:56 +00:00
Lee Salzman c94f5fca4f Bug 1996104 - Remove Feature::DIRECT2D and related queries. r=aosmond,geckoview-reviewers,media-playback-reviewers,win-reviewers,webcompat-reviewers,toolkit-telemetry-reviewers,layout-reviewers,gstoll,twisniewski,emilio,m_kato
Now that Direct2D is no longer supported, we can start removing the associated Feature
and queries of it.

This patch does the awkward work of removing Direct2D feature testing throughout Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D269855
2025-10-24 20:01:47 +00:00
serge-sans-paille 1667ec582b Bug 1995723 - Remove unused inclusion of mozilla/ArrayUtils.h r=necko-reviewers,application-update-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,firefox-svg-reviewers,layout-reviewers,gstoll,canaltinova,bytesized,alwu,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D269573
2025-10-23 07:30:37 +00:00
Andrew Osmond 114b214d16 Bug 1993946 - Allow the GPU process on unknown configs on Android. r=jnicol,gfx-reviewers
The blocklist won't work, but the GPU process should be considered
a baseline feature at this point.

Differential Revision: https://phabricator.services.mozilla.com/D268364
2025-10-13 11:47:17 +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
Ryan VanderMeulen 173bb27ec1 Bug 1972713 - Fix non-unified build errors in gfx. r=geckoview-reviewers,gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D264307
2025-09-10 12:46:08 +00:00
Andrew Osmond 9264708f8d Bug 1980282 - Batch gfxVar updates during fallback and hardware video changes. r=jnicol,alwu
When we update gfxVars, if we create gfxVarsCollectUpdates on the stack,
we can consolidate those updates into a single notification and IPC
message per process. This will save on churn, particularly for the media
processes, which may want to monitor multiple gfxVars for changes
affecting hardware video decoding/encoding.

This also moves the CodecSupportInfo from a gfxVar into a member of
GfxInfoBase since that is the only place that needs access to it. This
avoids bouncing back a gfxVar update back to all of the child processes
after a codec support update from each of them.

Differential Revision: https://phabricator.services.mozilla.com/D259335
2025-08-01 21:18:48 +00:00
Andrew Osmond 4e4e26edeb Bug 1969997 - Switch to using gfx blocklist for Windows NVIDIA mixed refresh rate bugs. r=gfx-reviewers,bradwerth
This reduces the complexity in gfxConfigManager by taking advantage of
the new blocklisting features added in bug 1969255. It also adds a
blocklist feature specifically for DirectComposition.

Differential Revision: https://phabricator.services.mozilla.com/D252247
2025-06-07 02:11:44 +00:00
Andrew Osmond c159fd652a Bug 1969255 - Part 5. Add support for monitor properties to blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251792
2025-06-05 20:46:45 +00:00
Andrew Osmond 5e2e6bb5d7 Bug 1969255 - Part 4. Distingush between Windows 10 and 11 in blocklist rules. r=win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251791
2025-06-05 20:46:42 +00:00
Andrew Osmond 5cdb3cb689 Bug 1969255 - Part 3. Add support for detailed OS version comparison blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251790
2025-06-05 20:46:39 +00:00
Andrew Osmond 0d2c62d0b2 Bug 1969255 - Part 2. Switch over to managed pointers in GfxInfo. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
This is a non-functional change to clean up some of the memory
management in GfxInfo and GfxDriverInfo. This makes it easier to track
what owns what and helps later patches in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D251789
2025-06-05 20:46:36 +00:00
Alexandru Marc eba25db42a Revert "Bug 1969255 - Part 5. Add support for monitor properties to blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,gstoll" for causing build bustages @ GfxInfo.h
This reverts commit ebecd3fbf1.

Revert "Bug 1969255 - Part 4. Distingush between Windows 10 and 11 in blocklist rules. r=win-reviewers,gfx-reviewers,bradwerth,gstoll"

This reverts commit 67e34e0032.

Revert "Bug 1969255 - Part 3. Add support for detailed OS version comparison blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll"

This reverts commit e7a16b3708.

Revert "Bug 1969255 - Part 2. Switch over to managed pointers in GfxInfo. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll"

This reverts commit 1823b99227.

Revert "Bug 1969255 - Part 1. Ensure we expose historically missing filter criteria on the blocklist. r=gfx-reviewers,bradwerth"

This reverts commit c5e3cb59b5.
2025-06-05 17:25:04 +00:00
Andrew Osmond ebecd3fbf1 Bug 1969255 - Part 5. Add support for monitor properties to blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251792
2025-06-05 16:35:17 +00:00
Andrew Osmond 67e34e0032 Bug 1969255 - Part 4. Distingush between Windows 10 and 11 in blocklist rules. r=win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251791
2025-06-05 16:35:14 +00:00
Andrew Osmond e7a16b3708 Bug 1969255 - Part 3. Add support for detailed OS version comparison blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251790
2025-06-05 16:35:11 +00:00
Andrew Osmond 1823b99227 Bug 1969255 - Part 2. Switch over to managed pointers in GfxInfo. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
This is a non-functional change to clean up some of the memory
management in GfxInfo and GfxDriverInfo. This makes it easier to track
what owns what and helps later patches in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D251789
2025-06-05 16:35:08 +00:00
pstanciu 39a31599c2 Revert "Bug 1969255 - Part 5. Add support for monitor properties to blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,gstoll" for causing build bustages on gfxConfigManager.cpp
This reverts commit 71c854a7c7.

Revert "Bug 1969255 - Part 4. Distingush between Windows 10 and 11 in blocklist rules. r=win-reviewers,gfx-reviewers,bradwerth,gstoll"

This reverts commit f12b5a2e23.

Revert "Bug 1969255 - Part 3. Add support for detailed OS version comparison blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll"

This reverts commit e6d94109d2.

Revert "Bug 1969255 - Part 2. Switch over to managed pointers in GfxInfo. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll"

This reverts commit d984fec4f8.

Revert "Bug 1969255 - Part 1. Ensure we expose historically missing filter criteria on the blocklist. r=gfx-reviewers,bradwerth"

This reverts commit 2f4298473a.
2025-06-04 22:59:47 +00:00
Andrew Osmond 71c854a7c7 Bug 1969255 - Part 5. Add support for monitor properties to blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251792
2025-06-04 22:02:34 +00:00
Andrew Osmond f12b5a2e23 Bug 1969255 - Part 4. Distingush between Windows 10 and 11 in blocklist rules. r=win-reviewers,gfx-reviewers,bradwerth,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251791
2025-06-04 22:02:31 +00:00
Andrew Osmond e6d94109d2 Bug 1969255 - Part 3. Add support for detailed OS version comparison blocklist rules. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
Differential Revision: https://phabricator.services.mozilla.com/D251790
2025-06-04 22:02:28 +00:00
Andrew Osmond d984fec4f8 Bug 1969255 - Part 2. Switch over to managed pointers in GfxInfo. r=geckoview-reviewers,win-reviewers,gfx-reviewers,bradwerth,nalexander,gstoll
This is a non-functional change to clean up some of the memory
management in GfxInfo and GfxDriverInfo. This makes it easier to track
what owns what and helps later patches in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D251789
2025-06-04 22:02:25 +00:00
Fatih 7e1473d078 Bug 1902570: Enable "Stix Two Math" on macOS 13 and above. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D226945
2024-11-07 13:08:10 +00:00
Alexandru Marc 0a17f2363a Backed out changeset 72c3990fdf3a (bug 1902570) for causing mass failures @ ClearOnShutdown.h. CLOSED TREE 2024-11-06 16:54:10 +02:00
Fatih 4bd73f74ca Bug 1902570: Enable "Stix Two Math" on macOS 13 and above. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D226945
2024-11-06 13:00:48 +00:00
serge-sans-paille 5946338a6a Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
serge-sans-paille 262f78c07f Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc a5eb905bf4 Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
serge-sans-paille 07101ac24d Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Alexandru Marc 004e704b22 Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE 2024-10-24 11:37:49 +03:00
serge-sans-paille 2c916d4973 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Tamas Szentpeteri 8285dfaab8 Backed out changeset 4b1409597101 (bug 1920718) for causing bp bustages on rapl.cpp. 2024-10-08 23:27:18 +03:00
serge-sans-paille 1966f9a43c Bug 1920718 - Annotate all global variable with runtime initialization as MOZ_RUNINIT r=application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-08 16:49:51 +00:00