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

8643 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 708c2f0ad2 Backed out changeset d42dc1f995bb (bug 1669275) for gfx crashes. CLOSED TREE 2020-10-08 04:26:03 +03:00
Robert Mader 8a5c42d45a Bug 1669275 - [WR/EGL/X11] Use GLX features on mesa. r=stransky
This allows mesa to continue using the existing vsync implementation
and nvidia to use the new EGL xvisual logic.

It is an intermediate solution until the issues are fixed. However,
assuming it will take a while to do so, it's probably worth it.

Differential Revision: https://phabricator.services.mozilla.com/D92466
2020-10-07 21:21:20 +00:00
Lee Salzman 88e30d29c4 Bug 1669575 - experimental backout of macOS 11 CoreText crash workaround in bug 1657440. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D92666
2020-10-06 20:37:27 +00:00
Jeff Muizelaar ab80b5cfe4 Bug 1669286 - Hold on to a Weak<T> for fonts so that we can memory report them. r=aosmond,gw
This adds a WeakTable which is a poor man's weak_table::PtrWeakHashSet.

Differential Revision: https://phabricator.services.mozilla.com/D92474
2020-10-06 13:22:26 +00:00
Jeff Gilbert a426e3880b Bug 1669381 - Replace GLLibraryEGL nsIGfxInfo use with gfxVars. r=mattwoodrow
+ Remove now-unused gfxUtils::ThreadSafeGetFeatureStatus.

Differential Revision: https://phabricator.services.mozilla.com/D92529
2020-10-06 05:43:33 +00:00
Narcis Beleuzu a22d48f88f Backed out changeset 03df2fdc9586 (bug 1669286) for WebRender bustages on Cargo.lock CLOSED TREE 2020-10-06 05:53:24 +03:00
Jeff Muizelaar 5835771ed1 Bug 1669286 - Hold on to a Weak<T> for fonts so that we can memory report them. r=gw
This adds a WeakTable which is a poor man's weak_table::PtrWeakHashSet.

Differential Revision: https://phabricator.services.mozilla.com/D92474
2020-10-05 22:48:14 +00:00
Jonathan Kew 2655501b30 Bug 1665196 - Use the main-thread idle queue rather than a repeating timer to finalize font loading. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D92302
2020-10-03 16:03:54 +00:00
Narcis Beleuzu c4408a4561 Backed out changeset cab81767be70 (bug 1665196) for mochitest failures on test_mouse_enterleave_iframe.html CLOSED TREE 2020-10-03 14:56:08 +03:00
Timothy Nikkel 3f2f0f567c Bug 1657822. Enable new desktop zooming scrollbar code. r=kats
The mathml reftest pref needs to be added at the same time because the test needs that pref with the new scrollbar code to pass, but it fails with that pref with the old scrollbar code. Since that test uses the minimum scale, which is only valid with overlay scrollbars, it is correct to do so.

Differential Revision: https://phabricator.services.mozilla.com/D91243
2020-10-02 21:05:40 +00:00
Jonathan Kew 1101dcaf73 Bug 1665196 - Use the main-thread idle queue rather than a repeating timer to finalize font loading. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D92302
2020-10-03 08:42:43 +00:00
Jeff Muizelaar 58d190620e Bug 1668377 - Switch printing from WrapAndRecord to just Recording. r=aosmond
Using WrapAndRecord for printing was just a way to minimize risk when
working on the RecordingDrawTarget. We would prefer to eliminate
WrapAndRecord.

These leaves some of old function names around just to keep the patch
small. If it sticks we can fix those names.

Differential Revision: https://phabricator.services.mozilla.com/D91988
2020-10-01 14:23:59 +00:00
Jeff Gilbert 449098b7b4 Bug 1668144 - Add blocklisting for OOP WebGL. r=mattwoodrow
* Add FEATURE_THREADSAFE_GL and FEATURE_ALLOW_WEBGL_OUT_OF_PROCESS
* Add gfxVars::AllowWebglOop()
* Blocklist THREADSAFE_GL on mesa/nouveau

Differential Revision: https://phabricator.services.mozilla.com/D91879
2020-10-01 08:14:12 +00:00
Jonathan Kew 6dc05ab6ef Bug 1665773 - Ensure CompressedGlyph::SetComplex() always clears the glyphCount to zero; let gfxShapedText::SetDetailedGlyphs() own the setting of this field. r=heycam
We also rearrange bits in the CompressedGlyph so that the advance field doesn't need to be shifted,
and remove unnecessary glyphCount parameters from various setter methods.

Differential Revision: https://phabricator.services.mozilla.com/D90678
2020-09-30 21:16:44 +00:00
Jeff Gilbert fe9cac8ce8 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also rename to UNUSED_FEATURE_WEBGL_MSAA, pending removal.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-27 22:18:23 +00:00
Csoregi Natalia 9fab6c0021 Backed out changeset 78024e47a901 (bug 1657822) for failures on test_bug1303704.html. CLOSED TREE 2020-09-25 10:19:54 +03:00
Csoregi Natalia fd1e86b487 Backed out changeset 3dcacf3ae5a1 (bug 1664905) for assertion failures on GfxInfoBase.cpp. CLOSED TREE 2020-09-25 09:33:40 +03:00
Jeff Gilbert 3fd329a969 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also remove obsolete FEATURE_WEBGL_MSAA.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-25 05:43:24 +00:00
Timothy Nikkel d0caf06032 Bug 1657822. Enable new desktop zooming scrollbar code. r=kats
The mathml reftest pref needs to be added at the same time because the test needs that pref with the new scrollbar code to pass, but it fails with that pref with the old scrollbar code. Since that test uses the minimum scale, which is only valid with overlay scrollbars, it is correct to do so.

Differential Revision: https://phabricator.services.mozilla.com/D91243
2020-09-24 22:09:54 +00:00
Razvan Maries 92ac0ffaa7 Backed out changeset 3ea0c63fe8b8 (bug 1664905) for build bustages on ClientWebGLContext.cpp. CLOSED TREE 2020-09-25 03:26:17 +03:00
Jeff Gilbert 98e2fea926 Bug 1664905 - Use gfxVars instead of GfxInfo in WebGL code. r=mattwoodrow
GfxInfo generally wants to be main-thread, so WebGL (especially
out-of-process) runs into problems sometimes.

Also remove obsolete FEATURE_WEBGL_MSAA.

Differential Revision: https://phabricator.services.mozilla.com/D91208
2020-09-24 23:46:12 +00:00
Simon Giesecke de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Andrew Osmond 92a899be07 Bug 1666272 - Use the HW ANGLE failure ID when disabled WebRender due to it. r=jrmuizel
We don't collect telemetry stats on why users don't get HW ANGLE,
however we can just share failure IDs with HW ANGLE when we disable
WebRender with UnavailableNoAngle.

Differential Revision: https://phabricator.services.mozilla.com/D90867
2020-09-21 20:43:20 +00:00
Jonathan Kew bc743e4fe4 Bug 1666181 - Add missing null-check in FontList::SearchForLocalFace to avoid possible crash. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D90840
2020-09-21 12:29:32 +00:00
Andrew Osmond ddedd422b9 Bug 1665764 - Expose in about:support hardware stretching support and scaling status. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D90703
2020-09-18 15:56:12 +00:00
Andrew Osmond e89e30ca7f Bug 1665648 - Initialize GPU process config before WebRender. r=kats
We need to initialize the GPU process config before WebRender because we
have a dependency on the GPU process to enable WebRender. Without this
patch, it gives very confusing initialization failures, which it should
be clear that it was disabled because there is no GPU process. The GPU
process feature itself will then have a clear reason why it was
disabled, typically because Windows did not support remote windowing
(e.g. too old).

Differential Revision: https://phabricator.services.mozilla.com/D90564
2020-09-17 14:04:24 +00:00
Emilio Cobos Álvarez b61d81f571 Bug 1665373 - Don't use nsAutoRef in fontconfig font list. r=jfkthame
There was a weird mix of nsAutoRef and nsCountedRef going on... Use RefPtr<>
for ref-counted things, and UniquePtr for non-refcounted ones.

Differential Revision: https://phabricator.services.mozilla.com/D90400
2020-09-16 23:11:13 +00:00
Jonathan Kew fcaefcf4a9 Bug 1661532 - Ensure bundled fonts that duplicate installed fonts will take precedence and remain visible even if visibility/RFP would block the installed version. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89133
2020-09-15 14:51:23 +00:00
Doug Thayer 025f5fb9f0 Bug 1656261 - Back out all recent StartupCache work r=RyanVM
This backs out all work from bug 1627075 as well as all of its
descendents. There were a few conflicts when backing this out but
overall it was pretty clean, so I would say it's a fairly mild
level of risk. Historically Nathan Froyd has reviewed these patches,
but he is no longer at Mozilla, and no one else is particularly
familiar with the code, so I am passing this off to RyanVM who has
at least been familiar with the history of the bug.

Differential Revision: https://phabricator.services.mozilla.com/D90096
2020-09-14 17:00:53 +00:00
Jonathan Kew aaefed9952 Bug 1663790 - Support oversized shared-memory blocks in the font list when needed for large allocations. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89615
2020-09-14 16:04:01 +00:00
sotaro 872ccfe115 Bug 1649088 - Add SharedSurface support with AHardwareBuffer support on android r=jgilbert
AHardwareBuffer could remove several limitations of android::SurfaceTexture.

File descriptor usage of current implementation is not efficient. It is going to be addressed by Bug 1663381.

Differential Revision: https://phabricator.services.mozilla.com/D89232
2020-09-11 03:11:45 +00:00
sotaro caabc67369 Bug 1663894 - Fix minGW build failure by Bug 1460499 r=nical
Differential Revision: https://phabricator.services.mozilla.com/D89699
2020-09-10 14:03:15 +00:00
Jonathan Kew dcb65c1e81 Bug 1647868 - Work around FcNameParse bug in versions around fontconfig 2.11.0, to avoid broken fonts when the shared font-list is enabled. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89653
2020-09-09 19:56:50 +00:00
sotaro 54ede5160d Bug 1460499 - Use DirectComposition for hardware decoded video on Windows r=nical
Use ID3D11VideoProcessor for video frame rendering.

WebRenderError::VIDEO_OVERLAY does not cause disabling WebRender. It just change gfxVars::UseWebRenderDCompVideoOverlayWin() to false.

Differential Revision: https://phabricator.services.mozilla.com/D88763
2020-09-09 01:04:53 +00:00
Glenn Watson 77ed56e2c7 Bug 1663362 - Remove extra raster root assignment pass. r=nical
This was left as a debug option when the original change was made,
to allow seeing the differences. It's no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D89328
2020-09-08 08:45:28 +00:00
Jonathan Kew e7ed767ca6 Bug 1663230 - Ensure MergeCharactersInTextRun clears the old glyph record before storing new details; also prefer simple glyph storage where possible. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D89380
2020-09-08 08:47:40 +00:00
stransky 716c84bec1 Bug 1650583 [Linux/EGL] Use GLX Vsync source on GLX only, r=jgilbert
When GLX Vsync source is created along EGL contexts, NVIDIA drivers refuse to make any EGL content current.
So disable GLX Vsync source creation when EGL context is used.

Differential Revision: https://phabricator.services.mozilla.com/D87634
2020-09-03 09:02:29 +00:00
Noemi Erli 3403bbb58e Backed out 4 changesets (bug 1650583) for causing build bustages in rules.mk CLOSED TREE
Backed out changeset 033e491241b1 (bug 1650583)
Backed out changeset e6a03fea3aad (bug 1650583)
Backed out changeset b24be6b2d8cd (bug 1650583)
Backed out changeset bbb04547d367 (bug 1650583)
2020-09-03 02:33:34 +03:00
Martin Stransky f1073aabb4 Bug 1650583 [Linux/EGL] Use GLX Vsync source on GLX only, r=jgilbert
When GLX Vsync source is created along EGL contexts, NVIDIA drivers refuse to make any EGL content current.
So disable GLX Vsync source creation when EGL context is used.

Differential Revision: https://phabricator.services.mozilla.com/D87634
2020-09-02 20:17:21 +00:00
Jonathan Kew e2024f61e0 Bug 1661677 - Ensure that font instances we decide not to use in FindFontForChar get passed to the global cache for expiration tracking. r=m_kato
Depends on D88578

Differential Revision: https://phabricator.services.mozilla.com/D88579
2020-09-01 04:30:57 +00:00
Jonathan Kew 67674b78cb Bug 1661570 - Allow webfonts to be used for emoji-default codepoints even if they don't provide color glyphs. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D88578
2020-09-01 07:43:53 +00:00
Sylvestre Ledru 9c192aa9ca Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D88713
2020-08-31 09:23:02 +00:00
Mihai Alexandru Michis 261d01524b Backed out changeset d0f173a90792 (bug 1519636) for causing bustages.
CLOSED TREE
2020-08-31 10:14:58 +03:00
Sylvestre Ledru 939dd426e6 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D88713
2020-08-31 06:51:21 +00:00
Jonathan Kew 31e90cf644 Bug 1659258 - Ensure that SetupFamilyCharmap always sets the mCharacterMap pointer, even if empty, so that we don't repeatedly call it for fonts we can't actually use. r=jwatt
Depends on D87175

Differential Revision: https://phabricator.services.mozilla.com/D87176
2020-08-21 14:24:37 +00:00
Jonathan Kew ae37d8dff3 Bug 1659257 - Set up shared-memory charmap record in FT2FontEntry::ReadCMAP. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87175
2020-08-26 14:33:56 +00:00
Jonathan Kew 3c2cb7fd1a Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-26 09:31:58 +00:00
Jonathan Kew f43df3b0df Bug 1648474 - patch 2 - Localized names other than the system locale (or default English) should not be exposed in the Preferences UI font list. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87661
2020-08-25 16:41:46 +00:00
Jonathan Kew ae51add868 Bug 1648474 - patch 1 - Include all localized DirectWrite font family names in the font list. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87660
2020-08-25 16:41:18 +00:00
sotaro 2789c3c5d4 Bug 1649354 - Add android Fence handling to Compositor r=jnicol
AHardwareBuffer requests to handle android fences. There are 2 type of fences, release fence and acquire fence. Some ideas were borrowed from b2g's FenceHandle implementation.

The release fence is a fence that is used for waiting until usage/composite of AHardwareBuffer is ended. It needs to be delivered from host side to client side. It is delivered via ImageBridge, since some TextureClientd str recycled without recycle callback.

The acquire fence is a fence that is used for waiting until rendering to its AHardwareBuffer is completed. It is delivered from client side to host side.

Differential Revision: https://phabricator.services.mozilla.com/D87298
2020-08-24 09:34:51 +00:00