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

41008 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Silva 5249683cb0 Bug 1716395 - Expose depth targets memory in the profiler HUD. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117895
2021-06-15 21:25:55 +00:00
Nicolas Silva 2f02416f74 Bug 1716395 - Reorder the profile counters. r=gfx-reviewers,gw
Only a cosmetic change. There is a check during initialization that the constants match the sequential order so little room for getting it wrong.

Differential Revision: https://phabricator.services.mozilla.com/D117702
2021-06-15 21:25:55 +00:00
Nicolas Silva 6fd5f44b39 Bug 1716395 - Break texture memory down into categories in memory reports. r=gfx-reviewers,jrmuizel
Also expose the information in the profiler HUD and rename some counters to make it more apparent when specific to the atlases as opposed to other textures managed by the texture cache.

Differential Revision: https://phabricator.services.mozilla.com/D117695
2021-06-15 21:25:54 +00:00
Jeff Muizelaar a7817816b7 Bug 1716559 - Remove TextureImageEGL. r=jnicol,jgilbert
TextureImageEGL doesn't seem to provide any value beyond
BasicTextureImage. It's last usage was bug 814159.

Removing this has the side effect of using BasicTextureImage
for small images instead of always using TilingTextureImage.

Differential Revision: https://phabricator.services.mozilla.com/D117904
2021-06-15 21:10:47 +00:00
Andrew Halberstadt 7a16af4434 Bug 1700781 - Skip failing mochitest-plain tests with fission + xorigin, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117704
2021-06-15 18:24:18 +00:00
Sandor Molnar 0a290a2d13 Backed out changeset bd9776af79de (bug 1716029) for causing reftest failures. CLOSED TREE 2021-06-15 21:08:06 +03:00
Jonathan Kew 5820669ad6 Bug 1716117 - Build SkiaPDF with harfbuzz subsetting, and eliminate use of sfntly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117586
2021-06-15 16:45:30 +00:00
Jonathan Kew 3050aa82c8 Bug 1716029 - Shape numeric runs in Arabic or Hebrew with RTL buffer directionality, so that OpenType rules will process glyphs in logical order. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D117910
2021-06-15 16:44:50 +00:00
Jonathan Kew 758d22f014 Bug 1716433 - Create a pref to determine whether Windows font substitutes are applied always, or only as fallback for unavailable fonts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D117890
2021-06-15 16:44:24 +00:00
Andrew Osmond d7e8883fcb Bug 1715524 - Make FilterNodeComponentTransferSoftware::GenerateLookupTable identify table dynamic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117542
2021-06-15 14:59:56 +00:00
Alexandru Michis 294f10eff7 Backed out 2 changesets (bug 1716395) for causing webrender bustages.
CLOSED TREE

Backed out changeset 2c22d2c47e18 (bug 1716395)
Backed out changeset d6bea50c4cce (bug 1716395)
2021-06-15 18:24:07 +03:00
Nicolas Silva 94b4094355 Bug 1716395 - Reorder the profile counters. r=gfx-reviewers,gw
Only a cosmetic change. There is a check during initialization that the constants match the sequential order so little room for getting it wrong.

Differential Revision: https://phabricator.services.mozilla.com/D117702
2021-06-15 10:06:06 +00:00
Nicolas Silva 5d4830c05e Bug 1716395 - Break texture memory down into categories in memory reports. r=gfx-reviewers,jrmuizel
Also expose the information in the profiler HUD and rename some counters to make it more apparent when specific to the atlases as opposed to other textures mamanged by the texture cache.

Differential Revision: https://phabricator.services.mozilla.com/D117695
2021-06-15 10:06:06 +00:00
dev 843237c570 Bug 1716465 - Surfaces are invalidated in low quality pinch-zoom mode if compositor scale changes. r=gfx-reviewers,lsalzman
Ensure that we only invalidate tiles if the surface scale changes
in low-quality pinch zoom mode, since it's irrelevant if the
compositor surface scale changes.

Differential Revision: https://phabricator.services.mozilla.com/D117727
2021-06-15 10:04:28 +00:00
Hiroyuki Ikezoe 3faa6fa27a Bug 1709460 - Try to initialize a displayport base for OOP iframe's root scroller with its visible rect. r=tnikkel
In the same manner what we initialize a diplayport base for top level contents.

Differential Revision: https://phabricator.services.mozilla.com/D116576
2021-06-15 01:49:32 +00:00
Lee Salzman bd25bb5370 Bug 1714511 - use vqmovun_s16 for packing pixels. r=sotaro
vqmovn_u16 is very different semantically then _mm_packus_epi16. _mm_packus_epi16 treats the input as signed 16-bit integers and narrows to unsigned 8-bit.
vqmovn_u16, however, is an unsigned to unsigned narrow. vqmovun_s16 does what we actually need here, which is to treated the input as signed 16-bit and narrow to unsigned 8-bit.

Differential Revision: https://phabricator.services.mozilla.com/D117705
2021-06-15 01:32:36 +00:00
Matt Woodrow 14a6394257 Bug 1714596 - Don't try to create a temporary DrawTarget for zero-sized blend modes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117592
2021-06-14 23:46:59 +00:00
Matt Woodrow 6088072b46 Bug 1678102 - Store the set of pending transactions in ClientLayerManager, to ensure we clear all of them during Destroy. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D117588
2021-06-14 23:43:21 +00:00
Timothy Nikkel 5a68c238f5 Bug 1700247. Add test. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D117584
2021-06-14 22:37:35 +00:00
Timothy Nikkel 38d7ba31ed Bug 1700247. Allow pinch zooming over an oopif to work. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D109449
2021-06-14 22:37:34 +00:00
sotaro d2f29f94be Bug 1715953 - Add flush DrawTarget r=lsalzman,gfx-reviewers
Needs to call flush DrawTarget to apply pending updates.

Differential Revision: https://phabricator.services.mozilla.com/D117628
2021-06-14 22:34:49 +00:00
Noemi Erli 4ed44ac8ab Backed out 2 changesets (bug 1716395, bug 1716317) for causing webrender bustages CLOSED TREE
Backed out changeset d0526849e7c3 (bug 1716317)
Backed out changeset 0693eb0f1e49 (bug 1716395)
2021-06-15 01:26:00 +03:00
Nicolas Silva 2c5fbaa287 Bug 1716317 - Reorder the profile counters. r=gfx-reviewers,gw
Only a cosmetic change. There is a check during initialization that the constants match the sequential order so little room for getting it wrong.

Differential Revision: https://phabricator.services.mozilla.com/D117702
2021-06-14 21:30:01 +00:00
Nicolas Silva c38415f653 Bug 1716395 - Break texture memory down into categories in memory reports. r=gfx-reviewers,jrmuizel
Also expose the information in the profiler HUD and rename some counters to make it more apparent when specific to the atlases as opposed to other textures mamanged by the texture cache.

Differential Revision: https://phabricator.services.mozilla.com/D117695
2021-06-14 21:30:00 +00:00
Glenn Watson 786dd59014 Bug 1715935 - Add experimental low quality pinch-zoom mode. r=gfx-reviewers,kvark
Building on previous patches, this adds a preference to enable
a low quality pinch-zoom mode that reuses cached tiles where
possible.

It doesn't currently redraw at the higher quality scale at the
end of a pinch-zoom, and there are some sampling artifacts in some
cases. However, it should be enough to do some performance testing
on low and devices and see if it helps.

Differential Revision: https://phabricator.services.mozilla.com/D117497
2021-06-14 20:40:21 +00:00
dev 75305aaa76 Bug 1674412 - Fix intermittent rounding accuracy bug. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D117616
2021-06-14 20:12:09 +00:00
Jonathan Kew 604ee10a9b Bug 1714762 - patch 2 - Add Noto symbol fonts to "common fallbacks" on Linux. r=lsalzman
Depends on D117666

Differential Revision: https://phabricator.services.mozilla.com/D117667
2021-06-14 17:09:21 +00:00
Jonathan Kew 04da370178 Bug 1714762 - patch 1 - Don't use asynchronous font fallback in the parent process, to avoid glitches in UI rendering. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D117666
2021-06-14 17:09:21 +00:00
Jonathan Kew 553fdd24fc Bug 1711479 - Support various metrics (not only ex-height) as the basis for font-size-adjust calculations in the gfx font implementations. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D115211
2021-06-14 12:32:37 +00:00
Jonathan Kew 00a8f91ec3 Bug 1711479 - Implement CSS support for the optional adjustment-basis metric keywords for the font-size-adjust property (enabled on Nightly only for now). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115596
2021-06-14 12:32:36 +00:00
Mats Palmgren ee53823e0f Bug 1542807 part 6 - Update test expectations and fix tests that unintentionally depend on bullet ::marker font metrics. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111696
2021-06-14 01:22:07 +00:00
Jeff Muizelaar fe448c9648 Bug 1711142. Limit the maximum size we allow for masks. r=mattwoodrow
Although blob images let us support very large images, it's easiest
avoid things getting way too big by just reusing our existing limit.

Differential Revision: https://phabricator.services.mozilla.com/D117580
2021-06-12 14:59:11 +00:00
Butkovits Atila ed3da455ae Backed out 7 changesets (bug 1542807) for causing failures at inert-retargeting-iframe.tentative.html. CLOSED TREE
Backed out changeset e9ef32fa2f2e (bug 1542807)
Backed out changeset 8fa0cb199975 (bug 1542807)
Backed out changeset 38daf64afe59 (bug 1542807)
Backed out changeset e3aee052c495 (bug 1542807)
Backed out changeset a71056d4c7cc (bug 1542807)
Backed out changeset cf91e7d0a37f (bug 1542807)
Backed out changeset eee949e5fd67 (bug 1542807)
2021-06-12 01:38:25 +03:00
Mats Palmgren 0b9e531f56 Bug 1542807 part 6 - Update test expectations and fix tests that unintentionally depend on bullet ::marker font metrics. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111696
2021-06-11 18:10:40 +00:00
Nicolas Silva 2be01aafa4 Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D117293
2021-06-11 13:33:10 +00:00
Nicolas Silva 8c3cb30358 Bug 1711648 - Move RasterRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117292
2021-06-11 13:33:09 +00:00
Nicolas Silva 2fd526f0b1 Bug 1711648 - Move TileRange to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117291
2021-06-11 13:33:09 +00:00
Nicolas Silva 4336044ca3 Bug 1711648 - Move TileRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117290
2021-06-11 13:33:08 +00:00
Nicolas Silva 724b80d537 Bug 1711648 - Move PictureRect to the endpoint representation. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116825
2021-06-11 13:33:08 +00:00
Nicolas Silva 1e02b75f51 Bug 1711648 - Move some space conversion utilities from rect to box. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116734
2021-06-11 13:33:07 +00:00
Andrew Osmond 805d9ce3e3 Bug 1715902 - Refuse WebRender on Linux if backed by software driver. r=jrmuizel
Reject software rasterizers on Linux (except Software WebRender) when
trying to create full WebRender, unless WebRender was force enabled.

Differential Revision: https://phabricator.services.mozilla.com/D117534
2021-06-11 13:15:17 +00:00
Dorel Luca 2190a59721 Backed out changeset c30c8b8dc0b5 (bug 1715902) on Dev's request. CLOSED TREE 2021-06-11 15:48:11 +03:00
Andrew Osmond 330727f6e8 Bug 1715902 - Refuse WebRender on Linux if backed by software driver. r=jrmuizel
When trying to create a GLContextEGL or GLContextGLX, we should check to
see what our display is backed by. If using a software driver, we should
fail to create the context for WebRender, so that it can fallback to
Software WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D117473
2021-06-11 12:16:36 +00:00
Glenn Watson 38119d0d9d Bug 1715663 - Remove fractional device offset invalidation r=gfx-reviewers,aosmond
Now that picture cache tiles establish raster roots, we can
separate the tile (compositor surface) transform from the local
transform of the tile.

This means we no longer need to check and invalidate tiles if a
fractional device space position is set (we can either round to
a device pixel in the compositor transform, or supply a fractional
translation to the compositor and allow it to handle it).

Differential Revision: https://phabricator.services.mozilla.com/D117378
2021-06-11 02:53:15 +00:00
Jonathan Kew 1783995b68 Bug 1714543 - Handle possible DWrite failures better when enumerating available fonts. r=lsalzman
I haven't been able to reproduce the issue here locally and test this directly, but according to
the reporter a build with this patch works for them.

My guess is that perhaps IDWriteLocalizedStrings::GetLocaleName has been returning a failure result,
causing us to drop the relevant font from the list altogether. We can handle that better by still
including the font, even if we're unsure which name matches the system locale.

This patch also adds a few gfxWarning() messages in places where we really don't expect things
to fail, but if they do, it might help us understand why fonts fail to appear.

Differential Revision: https://phabricator.services.mozilla.com/D117406
2021-06-10 16:21:27 +00:00
Jonathan Kew 74aef88b56 Bug 1664151 - Drop FC_CHARSET element from fontconfig patterns for TrueType/OpenType fonts, as we will read the cmap directly anyhow. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D117423
2021-06-10 16:13:39 +00:00
Robert Mader 0346222f4b Bug 1714326 - Cache more Wayland surface state, r=gfx-reviewers,aosmond
In order to avoid system compositor and wire overhead.
Also make more internals of `NativeSurfaceWayland` private.

Depends on D116675

Differential Revision: https://phabricator.services.mozilla.com/D116721
2021-06-10 15:12:55 +00:00
Robert Mader 18b6f28c4f Bug 1714326 - Cleanups and overhead reductions, r=gfx-reviewers,aosmond
Do not reorder subsurfaces if not necessary and remove some dead
code.

Depends on D116026

Differential Revision: https://phabricator.services.mozilla.com/D116675
2021-06-10 15:12:55 +00:00
Robert Mader 76692c1a43 Bug 1711244 - Integrate NativeLayerWayland with WaylandVsyncSource, r=stransky,gfx-reviewers,jrmuizel
Make the vsync source request frame callbacks from opaque native
layers. This is necessary as opaque layers may occlude the
MozContainer surface, which is normally used for frame callbacks.
Wayland compositors may (and are encouraged to) optimize away
such callbacks, so we need to make sure to request frame callbacks
from actually visible surfaces.

Callbacks are requested for all layers, but only the first callback
will trigger the vsync source.
In order to get this right concerning multiple requested callbacks,
possibly being called from different threads etc., introduce a
callback abstraction, `CallbackMultiplexHelper`, to make this simple
to handle for callers.

Differential Revision: https://phabricator.services.mozilla.com/D116026
2021-06-10 15:12:54 +00:00
Alexandru Michis b9be72a526 Backed out 6 changesets (bug 1711648) for causing crashes in FrameBuilder.
CLOSED TREE

Backed out changeset 0384828b36cc (bug 1711648)
Backed out changeset 15d8e0d681ef (bug 1711648)
Backed out changeset b27d8421ebc5 (bug 1711648)
Backed out changeset 12da58f4ac4f (bug 1711648)
Backed out changeset 1d4c0b685f0e (bug 1711648)
Backed out changeset 367235e897e3 (bug 1711648)
2021-06-10 18:28:27 +03:00