Граф коммитов

46514 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Silva 6bc956c386 Bug 1892398 - Don't hard-code that quad segments with a source render task are alpha blended. r=gw
Not immediately necessary but when cached quads or patterns that read a texture are implemented, There will be opaque segments taking render tasks as input. Currently the code is a bit error prone because some parts of the code advertize a certain behavior that is later overruled. This patch makes things more explicit and flexible.

Differential Revision: https://phabricator.services.mozilla.com/D208508
2024-05-06 05:53:40 +00:00
Nicolas Silva 604bbc736c Bug 1892398 - Rename a couple of render task variables for clarity. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D208507
2024-05-06 05:53:39 +00:00
Jonathan Kew 6a624ad3ab Bug 1870240 - patch 4 - Add a simple reftest to check that the test font loads successfully. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D209484
2024-05-05 10:00:25 +00:00
Jonathan Kew 0e4a7cd7f1 Bug 1870240 - patch 3 - Re-apply local OTS patches. r=gfx-reviewers,lsalzman
Generated by running

    ./mach vendor --patch-mode only gfx/ots/moz.yaml

Differential Revision: https://phabricator.services.mozilla.com/D209482
2024-05-05 10:00:25 +00:00
Jonathan Kew 4f693882be Bug 1870240 - patch 2 - Remove obsolete OTS patch file ots-1850314.patch. r=gfx-reviewers,lsalzman
This was merged upstream in https://github.com/khaledhosny/ots/pull/266.

Differential Revision: https://phabricator.services.mozilla.com/D209481
2024-05-05 10:00:25 +00:00
Jonathan Kew 2cc77d70c6 Bug 1870240 - patch 1 - Vendor latest version of OTS code. r=gfx-reviewers,lsalzman
Generated by running

    ./mach vendor --patch-mode none gfx/ots/moz.yaml

and committing the resulting changes.

Differential Revision: https://phabricator.services.mozilla.com/D209480
2024-05-05 10:00:24 +00:00
Markus Stange 2f5b350594 Bug 1888581 - Copy FontVariation data instead of doing an unsound cast. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D206567
2024-05-03 22:45:35 +00:00
Stanca Serban f562a2b405 Backed out changeset d8bf7ce5ab91 (bug 1888581) for causing webrender related build bustages. 2024-05-03 23:08:21 +03:00
Markus Stange 1dd3e83227 Bug 1888581 - Copy FontVariation data instead of doing an unsound cast. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D206567
2024-05-03 19:46:30 +00:00
Erich Gubler 85f8e5516d Bug 1893057 - build(webgpu): update WGPU to latest `trunk` as of 2024-04-22 r=webgpu-reviewers,supply-chain-reviewers,jimb
Incorporates adjustments to `expected` test outcomes in WebGPU CTS' WPT tests using `moz-webgpu-cts`
0.9.0. Namely, I used `moz-webgpu-cts update-expected --preset new-fx …` with reports from
[try:ee88f1757a59](https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&revision=ee88f1757a59c85dd5e7428102c95e2e45fd1a54&selectedTaskRun=ObmJmsZ0S9S3fNNKA-mY8Q.0).

Differential Revision: https://phabricator.services.mozilla.com/D208801
2024-05-02 18:17:36 +00:00
Joel Maher 64e5693772 Bug 1894551 - remove old win/aarch64 references in gtest moz.build files. r=RyanVM,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209182
2024-05-02 12:17:06 +00:00
Jonathan Kew f8e2122b2b Bug 1894424 - Optimize gfxFont::AlwaysNeedsMaskForShadow check by caching the answer in the font entry. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D209104
2024-05-02 09:00:17 +00:00
Botond Ballo b7116da08f Bug 1874199 - Add support for animation properties on StickyFrame spatial nodes. r=gw
The support is currently limited to translation transforms.

Depends on D208236

Differential Revision: https://phabricator.services.mozilla.com/D208237
2024-05-02 02:49:21 +00:00
Botond Ballo 64de57eafb Bug 1874199 - Split the handling of StickyFrame and ScrollFrame in SpatialNode::update_transform(). r=gw
The two cases share some code, but the next patch will add extra logic
specific to the StickyFrame case, which makes it cleaner to split them.

Differential Revision: https://phabricator.services.mozilla.com/D208236
2024-05-02 02:49:21 +00:00
pstanciu 06d741f4fa Backed out 4 changesets (bug 1874199) for causing WR bustages CLOSED TREE
Backed out changeset 0367fe61d2c9 (bug 1874199)
Backed out changeset 00d4835ec154 (bug 1874199)
Backed out changeset 4c6a338c5c30 (bug 1874199)
Backed out changeset 9756d029484d (bug 1874199)
2024-05-02 04:30:55 +03:00
Botond Ballo 25253183fb Bug 1874199 - Add support for animation properties on StickyFrame spatial nodes. r=gw
The support is currently limited to translation transforms.

Depends on D208236

Differential Revision: https://phabricator.services.mozilla.com/D208237
2024-05-02 00:14:01 +00:00
Botond Ballo 0d059931c0 Bug 1874199 - Split the handling of StickyFrame and ScrollFrame in SpatialNode::update_transform(). r=gw
The two cases share some code, but the next patch will add extra logic
specific to the StickyFrame case, which makes it cleaner to split them.

Differential Revision: https://phabricator.services.mozilla.com/D208236
2024-05-02 00:14:01 +00:00
Jonathan Kew 7fd08efe72 Bug 1894498 - Remove unused method gfxASurface::CopyToARGB32ImageSurface. r=gfx-reviewers,lsalzman
According to searchfox, there are no callers.

Differential Revision: https://phabricator.services.mozilla.com/D209142
2024-05-01 21:05:05 +00:00
Norisz Fay 1704458d1c Backed out changeset 8155e4688d45 (bug 1894424) for causing reftest failures CLOSED TREE 2024-05-02 01:25:08 +03:00
Jonathan Kew 3655e633e9 Bug 1894424 - Optimize gfxFont::AlwaysNeedsMaskForShadow check by caching the answer in the font entry. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D209104
2024-05-01 14:28:56 +00:00
Stanca Serban 9dd6c7da25 Backed out changeset 9f9a83173704 (bug 1893088) for causing talos related process-crashes. 2024-05-01 11:58:20 +03:00
Jonathan Kew 773e223ad3 Bug 1893891 - Clear mSharedBlobData if blob creation failed. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D208983
2024-04-30 17:05:42 +00:00
Jamie Nicol fd1da0fb91 Bug 1892601 - Fix parsing of Mali driver version without trailing characters. r=gfx-reviewers,lsalzman
To determine whether to work around a known driver bug (bug 1787520)
affecting certain Mali drivers, we parse the GL_VERSION string which
follows a common format on Mali devices.

In this bug, however, we encountered a device with a slightly
different version format. The "v", "r" and "p" numbers we care about
are still present, but the trailing string that begins with a "-" was
not. This was tripping up our parsing logic even though we ignore its
value. This patch handles the case where the trailing string is not
present, meaning we correctly apply the existing workaround, and avoid
the bug on this device.

Differential Revision: https://phabricator.services.mozilla.com/D209004
2024-04-30 16:28:23 +00:00
Natalia Csoregi ab9ee3940a Backed out 3 changesets (bug 1880503) for causing bustage on CrashReporterHost.h. CLOSED TREE
Backed out changeset 296455072556 (bug 1880503)
Backed out changeset 842611b8fcbc (bug 1880503)
Backed out changeset eae32f6ab26c (bug 1880503)
2024-04-30 18:26:00 +03:00
Jamie Nicol 28108055b6 Bug 1880503 - Handle sync IPC timeout in UiCompositorControllerChild. r=aosmond
Extend the sync IPC timeout mechanism in CompositorManagerChild to
additionally cover UiCompositorControllerChild. As
UiCompositorControllerChild runs on the Android UI thread, we ensure
GPUProcessManager::KillProcess dispatches to the gecko main thread.

Along with the previous patch in this series this should provide us
with crash reports when the Android UI thread is hung waiting for the
GPU process to reply.

Differential Revision: https://phabricator.services.mozilla.com/D202167
2024-04-30 15:06:21 +00:00
Jamie Nicol e4dd0c49fb Bug 1880503 - Generate paired minidump when GPU process is killed following IPC timeout. r=aosmond,gsvelto
When sync IPC under the top-level PCompositorManager protocol does not
reply within a certain time threshold we purposefully kill the GPU
process. While this allows the user to recover from a stuck GPU
process, we have little visibility about the underlying cause.

This patch makes it so that we generate a paired minidump for the GPU
and parent processes prior to killing the GPU process in
GPUProcessHost::KillHard(). The implementation roughly follows the
equivalent for content processes in ContentParent::KillHard().

As the GPU process can be purposefully killed during normal operation,
and because generating minidumps can be expensive, we are careful to
only do so when the new argument aGenerateMinidump is true. We
additionally remove the aReason argument as it is unused (and
currently innacurate in some places).

As these minidumps may not automatically submitted we limit the
minidumps generation to twice per session in order to avoid
accumulating a large number of unsubmitted minidumps on disk.

Differential Revision: https://phabricator.services.mozilla.com/D202166
2024-04-30 15:06:21 +00:00
Glenn Watson 7a0189e02b Bug 1893088 - Split coord space mapping for stacking context coord / external scroll offsets r=gfx-reviewers,nical
During display list and scene building, there are two coordinate
remapping steps that occur:

1) From stacking context coords -> reference frame relative coords
2) From pre-scrolled coords -> removed external scrolling offsets

These were previously handled in one place, however we want to
split these up so that we can apply snapping _after_ step 1 but
prior to step 2. This will allow us to have fractional external
scroll offsets that don't affect snapping. These will be snapped
later on during frame build after applying any (possibly fractional
APZ scroll offsets). This is a cheap operation during frame building
as we only need to snap and modify the transform matrices, not
individual primitives.

This patch should have no functional changes, it's prep work for
the changes referenced above. It does move all of step 1 to be
done during DL building in the content process, and all of step
2 to be done during scene building in the GPU process. In future,
if/when we resolve the issues we have with reliance on cross-iframe
knowledge for fractional snapping, we can move step 2 (including
snapping) in to the content process as well.

Further, as part of the DL bypass work, we will need to remap coord
spaces during DL building in a differeny way, which this simplifies.

Differential Revision: https://phabricator.services.mozilla.com/D208427
2024-04-29 23:49:00 +00:00
Botond Ballo 5a4c48e46e Bug 1893742 - Disable helper_doubletap_zoom_textarea.html on Mac. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D208803
2024-04-29 23:23:56 +00:00
alwu 053270f7b0 Bug 1892516 - part5 : report Glean probe from the chrome process. r=media-playback-reviewers,padenot
According to [1], currently we can only set a labeled boolean from the
chrome process, so we need to adjust our design to report result from
reporting from the GPU/RDD process to the chrome process.

Therefore, we have to always check HEVC first, and trim it later in
order to not to incorrectly support HEVC if the pref for HEVC is off.

[1] https://firefox-source-docs.mozilla.org/toolkit/components/glean/dev/ipc.html#forbidding-non-commutative-operations

Differential Revision: https://phabricator.services.mozilla.com/D208716
2024-04-29 17:46:29 +00:00
alwu 2b1351d2b2 Bug 1892516 - part3 : use Glean API and report the probe on more platforms. r=padenot
`device_hardware_decoding_support` was previously only recorded on
Windows and we want to extend this probe to other platforms as well.

Differential Revision: https://phabricator.services.mozilla.com/D208245
2024-04-29 17:46:28 +00:00
alwu cb1209a5df Bug 1892516 - part2 : report false for unsupported codecs. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D208244
2024-04-29 17:46:28 +00:00
alwu 20c124ffe1 Bug 1892516 - part1 : explicitly disable HEVC support to avoid running the initialization again. r=media-playback-reviewers,padenot
We can actually control whether HEVC is enabled by setting
`sForceEnableHEVC` to false without running decoder module's
initialization again, which can save some time because the
initialization is expensive.

[1] https://searchfox.org/mozilla-central/rev/ee9fd5e2df79c6d69af5aa9bc36041166f483227/dom/media/platforms/wmf/WMFDecoderModule.cpp#486

Differential Revision: https://phabricator.services.mozilla.com/D208243
2024-04-29 17:46:27 +00:00
Daniel Holbert b5c7acadd5 Bug 1893270 followup: save a copy of the cairo patch in-tree. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D208657
2024-04-27 18:53:23 +00:00
Daniel Holbert 86f86dbf0e Bug 1893270: Make cairo font-creation functions consistently use calloc. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D208556
2024-04-27 18:53:22 +00:00
Brad Werth 6691d805a0 Bug 1887703: Upgrade an assert in DeviceManagerDx::CreateContentDevicesLocked to MOZ_RELEASE_ASSERT. r=jrmuizel
If this is the source of the crash, this assert will change the crash
signature, but that will pinpoint the cause. In such a case, applying
D208682 should fix the crash.

Differential Revision: https://phabricator.services.mozilla.com/D208694
2024-04-26 01:30:50 +00:00
Sandor Molnar 6d01c0b28a Backed out 3 changesets (bug 1892516) for causing multiple failures @ toolkit/components/glean/api/src/private/boolean.rs CLOSED TREE
Backed out changeset 842a809422f9 (bug 1892516)
Backed out changeset 5155a959fe13 (bug 1892516)
Backed out changeset d1cebb819ab9 (bug 1892516)
2024-04-25 21:30:10 +03:00
alwu dbd07bdc6a Bug 1892516 - part3 : use Glean API and report the probe on more platforms. r=padenot
`device_hardware_decoding_support` was previously only recorded on
Windows and we want to extend this probe to other platforms as well.

Differential Revision: https://phabricator.services.mozilla.com/D208245
2024-04-25 17:32:16 +00:00
alwu 83af8f4c6e Bug 1892516 - part2 : report false for unsupported codecs. r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D208244
2024-04-25 17:32:15 +00:00
alwu 8d2a25def5 Bug 1892516 - part1 : explicitly disable HEVC support to avoid running the initialization again. r=media-playback-reviewers,padenot
We can actually control whether HEVC is enabled by setting
`sForceEnableHEVC` to false without running decoder module's
initialization again, which can save some time because the
initialization is expensive.

[1] https://searchfox.org/mozilla-central/rev/ee9fd5e2df79c6d69af5aa9bc36041166f483227/dom/media/platforms/wmf/WMFDecoderModule.cpp#486

Differential Revision: https://phabricator.services.mozilla.com/D208243
2024-04-25 17:32:15 +00:00
Jonathan Kew 10440ad7ff Bug 1892363 - When looking for font prefs based on a lang tag, try comparing the base lang alone if the whole tag doesn't match. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D208588
2024-04-25 15:37:25 +00:00
Dan Robertson 455ab11833 Bug 1863194 - Do not terminate wheel transaction on browsing context change. r=hiro,smaug,webdriver-reviewers,Sasha
We should continue to use a wheel transaction for wheel events when the
browsing context changes from the current context. Avoiding the override
of the event target with the current wheel transaction can halt a page
scroll when the mouse moves over content in a different presentation
context.

Differential Revision: https://phabricator.services.mozilla.com/D205495
2024-04-25 12:16:40 +00:00
Timothy Nikkel cbda5363c6 Bug 1864255. Remove disabling window_occlusion_tracking pref changes from all crashtests. r=layout-reviewers,emilio
They are no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D193655
2024-04-25 10:44:35 +00:00
sotaro e68cd79db8 Bug 1893364 - Add more profiler markers around video overlay handing r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D208577
2024-04-25 04:12:07 +00:00
alwu f4425129ba Bug 1885671 - part3 : initialize Media Foundation earlier for GPU process. r=media-playback-reviewers,padenot
This is used to fix the failures [1] on Windows xpcshell test on the try
server. As we've changed the timing of initailizing in previous patches,
that delays the timing of setting clean-up for MediaFoundationInitializer.

MediaFoundationInitializer has to be clean on MTA thread, but on the try
server, when the runnable for clean-up being dispatched on the main
thread, the MTA thread has been shutdowned.

Therefore, we would like to run the initialization earlier to ensure the
clean-up can be setup properly, which is like what we do for RDD [2].

[1] https://treeherder.mozilla.org/logviewer?job_id=455059875&repo=autoland&lineNumber=2090
[2] https://searchfox.org/mozilla-central/rev/eb4700a6be8371fe07053bc066c2d48ba813ce3d/dom/media/ipc/RDDParent.cpp#108-111

Differential Revision: https://phabricator.services.mozilla.com/D208250
2024-04-25 02:20:22 +00:00
alwu 478cb296e2 Bug 1885671 - part1 : run the method of getting codec supported on the background thread in order not to block the main thread. r=jrmuizel
There are modifications needed for PDMfactory and the decoder modules in
order to run their methods on non-mainthread and keep them threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D206420
2024-04-25 02:20:21 +00:00
Botond Ballo cfa2ab5f6e Bug 1888904 - Remove the earlier check against emitting the same transform on nested WebRenderLayerScrollData nodes. r=tnikkel,hiro
This check, added in bug 1753779, should be made redundant by the
more robust check added in the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D207191
2024-04-24 23:38:26 +00:00
Botond Ballo c04e7f8bfd Bug 1888904 - Try harder to avoid emitting the same transform on nested WebRenderLayerScrollData nodes. r=tnikkel,hiro
Differential Revision: https://phabricator.services.mozilla.com/D207190
2024-04-24 23:38:26 +00:00
Hiroyuki Ikezoe 2ef48add5a Bug 1888904 - A mochitest. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D206715
2024-04-24 23:38:26 +00:00
Jan-Erik Rediger d23d51f602 Bug 1891745 - Update to Glean v60 and glean_parser v14 r=TravisLong,supply-chain-reviewers,mach-reviewers,android-reviewers,firefox-desktop-core-reviewers ,mconley,ahal,kaya
Differential Revision: https://phabricator.services.mozilla.com/D207869
2024-04-24 19:14:16 +00:00
Nicolas Silva 412213f734 Bug 1892398 - Remove unused prim_spatial_node_index in PrimTask. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D208314
2024-04-24 13:07:30 +00:00