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

1740 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu 27fd53cc53 Backed out changeset 9c6fae7b8434 (bug 1847084) for reftest failures. CLOSED TREE 2023-08-10 08:24:57 +03:00
Glenn Watson 65ed481264 Bug 1847084 - Add extra fuzziness for tier 2 1845828-1.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D185851
2023-08-10 04:51:28 +00:00
Glenn Watson 503938c13e Bug 1847644 - Add a little more fuzziness for tier 2 platforms r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D185768
2023-08-09 17:52:23 +00:00
Otto Länd 548d6e23f7 Bug 1845828: apply code formatting via Lando
# ignore-this-changeset
2023-08-03 14:18:06 +00:00
Jonathan Kew ab2d1ab02d Bug 1845828 - patch 3 - Add a reftest for scaled canvas rendering of tiny font size. r=gfx-reviewers,lsalzman
Tryserver says this fails on Linux, though it passes for me locally;
it depends whether we end up using subpixel positioning or not, which
in turn is dependent on a whole slew of factors. So marking as random
there. Other platforms look happy.

Depends on D184820

Differential Revision: https://phabricator.services.mozilla.com/D185294
2023-08-03 13:32:29 +00:00
Emilio Cobos Álvarez 595328df6d Bug 1846745 - Remove nsColorNames.h. r=tlouw
Use the CSS parser to parse named colors.

Differential Revision: https://phabricator.services.mozilla.com/D185156
2023-08-03 10:52:14 +00:00
Emilio Cobos Álvarez 37525ae110 Bug 1845540 - Remove some unused macOS system colors. r=mstange,desktop-theme-reviewers,dao
-moz-mac-secondaryhighlight has one user, but it's the same as
-moz-cellhighlight so just use that.

Differential Revision: https://phabricator.services.mozilla.com/D184596
2023-07-26 20:48:14 +00:00
Cristian Tuns 37fd0fee76 Backed out changeset b1b105230b62 (bug 1842478) for causing mochitest failures in /test_transitions_and_zoom.html CLOSED TREE 2023-07-23 13:36:41 -04:00
Gregory Pappas ba080b120a Bug 1842478 - Remove layout.css.individual-transform.enabled pref r=boris,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184176
2023-07-23 14:24:59 +00:00
Sandor Molnar 290f09f319 Backed out changeset da009889019a (bug 1842478) for causing build bustage in gfx/layers/AnimationInfo.cpp CLOSED TREE 2023-07-23 16:59:19 +03:00
Gregory Pappas 7d6e837414 Bug 1842478 - Remove layout.css.individual-transform.enabled pref r=boris,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184176
2023-07-23 13:17:59 +00:00
Glenn Watson 6cd2ae615b Bug 1843622 - Better fix / workaround for invalid scale in ScaleOffset r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D183698
2023-07-17 23:52:06 +00:00
Razvan Cojocaru 23aa72ebf6 Bug 1841478 - Use strongly-typed coordinates in the BaseSize constructor. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D182654
2023-07-10 02:59:01 +00:00
Glenn Watson f4aca77390 Bug 1683679 - Clamp maximum number of border dashes to 16k r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D182529
2023-07-09 22:51:35 +00:00
Glenn Watson e726227477 Bug 1825450 - Ensure device pixel scale for surfaces can't become infinite r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D182429
2023-07-09 21:22:10 +00:00
Glenn Watson 6b50a8161b Bug 1836690 - Add support for complex + tiled paths to new clip-mask rendering path r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179901
2023-06-13 00:30:37 +00:00
Norisz Fay f072b086df Backed out changeset e7ca3872307f (bug 1836690) for causing reftest failure on colrv1-01.html#Q CLOSED TREE 2023-06-12 06:38:34 +03:00
Glenn Watson b7ccaa2a87 Bug 1836690 - Add support for complex + tiled paths to new clip-mask rendering path r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179901
2023-06-11 22:20:58 +00:00
Ryan VanderMeulen d10b5739d2 Bug 1835833 - Update OTS to 9.1.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D179464
2023-05-30 16:56:48 +00:00
Ray Kraesig 06d7f9c03e Bug 1834612 - [1/1] Restrict DComp-disabling mitigation to Windows 10 r=ahale,gfx-reviewers
Bug 1704954 disabled DirectComposition for users with NVIDIA graphics
hardware and mixed monitor refresh rates on Windows 10 and 11, as a
mitigation for bug 1638709. However, that bug is almost -- perhaps
entirely -- unknown on Windows 11 (q.v. for details), and the fallback
path it uses has been shown to cause issues there (bug 1763981).

Restrict the mitigation to only occur on Windows 10, where bug 1638709
is exhibited, but where no issues with the fallback path are known.

This also effectively reverts bug 1816001, which it obviates.

Differential Revision: https://phabricator.services.mozilla.com/D178848
2023-05-30 16:22:43 +00:00
Mark Banner 130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Ray Kraesig 98dc3ec133 Bug 1830792 - [3/4] Remove is-nightly check for bug 1704954 mitigation r=gfx-reviewers,bradwerth
This mitigation exposed bug 1763981. Unfortunately, not applying it on
Nightly made it look like bug 1763981 was _fixed_ in Nightly, tricking
several users and developers and making testing needlessly more
difficult even after this was discovered.

Apply the mitigation across the board, regardless of release channel.
Developers may still set `gfx.webrender.dcomp-apply-1704954` to override
this as needed for testing (e.g.) fixes for bug 1638709.

Differential Revision: https://phabricator.services.mozilla.com/D176843
2023-05-03 14:24:35 +00:00
Peter Van der Beken 635046af85 Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-18 07:07:05 +00:00
Glenn Watson 11dd2a2799 Bug 1827553 - Update fuzziness for gfx/tests/reftest/1696439-1.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175702
2023-04-18 02:29:16 +00:00
Glenn Watson 9c3ebe80a1 Bug 1828419 - Update fuzziness for gfx/tests/reftest/1761460.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175701
2023-04-18 02:29:16 +00:00
Glenn Watson 7cb499d1d9 Bug 1823578 - Add new clip-mask rendering path r=gfx-reviewers,ahale
This adds the new infrastructure for rendering masked primitives
and uses it for simple rectangle primitives. Follow up patches
will port other primitives to it (and transformed rectangles).

Instead of rendering an alpha mask and then applying that during
picture cache rendering of content, the underlying content is
drawn to an off-screen surface, and the mask is applied on
top of that via multiplicative blending.

This is particularly helpful for applying masks to dynamically
rendered pictures in future, as we can apply the mask over the
already rendered picture without allocating an extra surface.

Since the content and mask is rendered together to a surface,
we can take advantage of this in future by caching the result
in the texture cache, rather than a temporary render target.
This means we don't need to redraw clip masks for this content
each time the surrounding area is invalidated.

Since the clip-mask is rendered in to the off-screen surface,
it is cheaper and simpler to composite the content in to the
main scene, avoiding an extra texture fetch and some tricky
fragment shader logic to sample the correct part of the mask.

To reduce the number of off-screen pixels that get drawn, the
system supports splitting the content up in to a series of
segments. This can either be a 9-patch, for the simple and
common case of a single rounded clip, or a tile grid across
the primitive. The tile grid can make it much faster to apply
large image masks, where there are often large areas that we
can determine are not affected by the mask image.

Differential Revision: https://phabricator.services.mozilla.com/D173095
2023-04-17 04:04:17 +00:00
Cosmin Sabou 60f701f2e5 Backed out 2 changesets (bug 1804140) for causing webdriver failures. CLOSED TREE
Backed out changeset 974558fd2790 (bug 1804140)
Backed out changeset dbe9d2f66fcc (bug 1804140)
2023-04-14 13:28:44 +03:00
Peter Van der Beken e0b98d564b Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-14 08:09:50 +00:00
Narcis Beleuzu 937fd1f910 Backed out changeset 4548910a12b0 (bug 1823578) as req by gwatson . CLOSED TREE 2023-04-12 22:54:32 +03:00
Glenn Watson afa7d91d20 Bug 1823578 - Add new clip-mask rendering path r=gfx-reviewers,ahale
This adds the new infrastructure for rendering masked primitives
and uses it for simple rectangle primitives. Follow up patches
will port other primitives to it (and transformed rectangles).

Instead of rendering an alpha mask and then applying that during
picture cache rendering of content, the underlying content is
drawn to an off-screen surface, and the mask is applied on
top of that via multiplicative blending.

This is particularly helpful for applying masks to dynamically
rendered pictures in future, as we can apply the mask over the
already rendered picture without allocating an extra surface.

Since the content and mask is rendered together to a surface,
we can take advantage of this in future by caching the result
in the texture cache, rather than a temporary render target.
This means we don't need to redraw clip masks for this content
each time the surrounding area is invalidated.

Since the clip-mask is rendered in to the off-screen surface,
it is cheaper and simpler to composite the content in to the
main scene, avoiding an extra texture fetch and some tricky
fragment shader logic to sample the correct part of the mask.

To reduce the number of off-screen pixels that get drawn, the
system supports splitting the content up in to a series of
segments. This can either be a 9-patch, for the simple and
common case of a single rounded clip, or a tile grid across
the primitive. The tile grid can make it much faster to apply
large image masks, where there are often large areas that we
can determine are not affected by the mask image.

Differential Revision: https://phabricator.services.mozilla.com/D173095
2023-04-12 00:03:19 +00:00
Mark Banner 4a729cf9d7 Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D173450
2023-03-24 19:35:24 +00:00
Jamie Nicol b4da4c2fb4 Bug 1823411 - Give all webrender's shader varyings an explicit precision. r=gfx-reviewers,lsalzman
Mali profiling tools have shown we are frequently fragment bound, in
particular due to varying interpolation. To help mitigate this, we
should use mediump where possible. Currently most of our varyings are
implicitly highp by default. This patch reduces their precision to
mediump where possible. When varyings must remain highp for
correctness reasons, this is now stated explicitly.

As expected, this does cause a fair bit of reftest fuzziness on
Android devices. This patch also updates reftest expectations to
reflect this.

Differential Revision: https://phabricator.services.mozilla.com/D173028
2023-03-21 19:05:19 +00:00
Jeff Muizelaar d4b665dc34 Bug 1819966 - Add some more tests around single number versioning. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D171488
2023-03-02 18:34:06 +00:00
Brad Werth 75eeec6a99 Bug 1768495 Part 4: Disable window occlusion tracker pref on crashtests that rely on a running compositor. r=emilio
These crashtests rely upon either a requestAnimationFrame callback or a
MozAfterPaint event. Those currently won't happen when the compositor is
paused, and on Windows these crashtests are occluded, which will now pause
the compositor. To deal with this, we disable the occlusion tracking pref
on Windows. Other platforms seem not to treat the crashtests as occluded,
so their compositors keep running.

Differential Revision: https://phabricator.services.mozilla.com/D171137
2023-02-28 23:04:54 +00:00
Andrew Osmond e69fa7da55 Bug 1818047 - Add prefs to control WebRender scissored cache clears. r=gfx-reviewers,jrmuizel
This patch adds two new prefs, gfx.webrender.scissored-cache-clears
.enabled and .force-enabled to control its status beyond the blocklist.
The former is true by default and allows one to turn the feature off by
flipping it to false. The latter allows one to force the feature on even
if the blocklist disables it. It also adds the status to the decision
log in about:support.

Differential Revision: https://phabricator.services.mozilla.com/D170507
2023-02-21 20:50:58 +00:00
Gijs Kruitbosch 387cf24ca0 Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
Depends on D168396

Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 23:50:41 +00:00
Andi-Bogdan Postelnicu d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Cristina Horotan 5f4356e527 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch ff1cc20bd7 Bug 1810141 - fix tests to deal with changes to loadURI, r=mossop,perftest-reviewers,geckoview-reviewers,extension-reviewers,sparky,owlish
Depends on D168396

Differential Revision: https://phabricator.services.mozilla.com/D168397
2023-02-13 12:55:26 +00:00
Neil Deakin 9c2e7458ba Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato
Most usage is a straight replacement but gtk needs extra changes as it transfers plain text in UTF8 natively and needs to be converted into UTF16, and Windows uses single-byte characters for RTF and CF_HTML formats so we preserve this.

Differential Revision: https://phabricator.services.mozilla.com/D158587
2023-02-01 23:30:55 +00:00
Emilio Cobos Álvarez 3a46916749 Bug 1812698 - Expose desktopEnvironment via nsIXULRuntime rather than nsIGfxInfo. r=stransky
This is:

 * An easier way for browser code to access it.
 * Avoids having a bunch of per-platform implementations.
 * We don't need to actually get graphics info for it to work.

So it should be a bit nicer over all.

Differential Revision: https://phabricator.services.mozilla.com/D168373
2023-02-01 13:14:50 +00:00
Glenn Watson 9959f39275 Bug 1813514 - Add further amount of fuzziness to new reftest r=gfx-reviewers,jgilbert
There is some edge AA fuzziness due to the differences between
the test and reference. Fuzzing them doesn't affect the test
result as when the bug occurs the rendering difference is
dramatically different.

Differential Revision: https://phabricator.services.mozilla.com/D168464
2023-01-31 20:37:20 +00:00
Glenn Watson fccecb89b3 Bug 1813514 - Add small amount of fuzziness to new reftest r=gfx-reviewers,jgilbert
There is some edge AA fuzziness due to the differences between
the test and reference. Fuzzing them doesn't affect the test
result as when the bug occurs the rendering difference is
dramatically different.

Differential Revision: https://phabricator.services.mozilla.com/D168306
2023-01-30 20:42:38 +00:00
Glenn Watson 24de73bc80 Bug 1808830 - Fix a panic from an invalid cast in euclid r=gfx-reviewers,jrmuizel
When the scale is very large, we need to adjust that before
doing the cast to integer units.

Differential Revision: https://phabricator.services.mozilla.com/D168027
2023-01-30 00:12:15 +00:00
Glenn Watson 1e90b02453 Bug 1812341 - Fix 3d transforms bug with backface-visibility: hidden r=gfx-reviewers,jrmuizel
Revert the original changes from bug 1772049 for now. We don't
currently rely on that patch, having found a simpler way to
handle how that code interacts with the backdrop-filter code.

Differential Revision: https://phabricator.services.mozilla.com/D168015
2023-01-29 23:38:27 +00:00
Jonathan Kew b9dbd7a04b Bug 1803154 - Back out changeset c1b0ce76a51b (bug 1801512) because it seems to have made things worse for a number of users. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D167615
2023-01-24 10:03:49 +00:00
Emilio Cobos Álvarez 9e530f224a Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu
Move it to the mozilla::widget namespace.

Use enum classes for transparency, popup type, popup level, etc.

Mostly automated with sed, but there were a few manual changes required
as well in windows code because they relied on Atomic<TransparencyMode>
working (which now doesn't because TransparencyMode is 1 byte instead of
4 bytes).

Differential Revision: https://phabricator.services.mozilla.com/D167537
2023-01-23 23:58:41 +00:00
Mark Banner 60852a03b7 Bug 1811797 - Make Troubleshoot.snapshot an async function, rather than using a callback. r=mossop,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D167516
2023-01-23 18:09:02 +00:00
Hiroyuki Ikezoe d84e6c922f Bug 1776056 - Switch to the tab an animation is running and make sure the animation is running on the compositor. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D166745
2023-01-15 21:07:17 +00:00
Iulian Moraru e558b2520c Bug 1776056 - disable browser_omta_tearoff_tab.js on linux for frequent failures. r=#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166258
2023-01-08 18:30:04 +00:00