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

8744 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew a608a1f16d Bug 1685059 - Add a bunch more Indic Noto fonts to common fallbacks on Android. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100766
2021-01-07 02:40:08 +00:00
Sylvestre Ledru b58ddc19df Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with Debian clang-format version 11.0.1-1

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100934
2021-01-06 17:17:23 +00:00
Jonathan Kew e62d1f199c Bug 1684846 - Bail out of font-info loader if the platform doesn't actually care about loading any info. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D100694
2021-01-04 20:57:43 +00:00
Andi-Bogdan Postelnicu 7b246e293f Bug 1683551 - Make `gfx` buildable outside of `unified-build` environment. r=sg,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D100209
2021-01-04 14:20:17 +00:00
Jonathan Kew 809ac36608 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-31 00:33:48 +00:00
Cosmin Sabou 74039caf3c Backed out changeset 345d6be71db1 (bug 1676966) for mochitest without e10s failures. CLOSED TREE 2020-12-30 15:36:10 +02:00
Jonathan Kew c19e845492 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-30 12:34:49 +00:00
Mihai Alexandru Michis d50d8d795e Backed out changeset 52eb1fa54b88 (bug 1676966) for causing mochitest failures in AsyncCompositionManager.cpp 2020-12-30 00:16:44 +02:00
Jonathan Kew 12c934e612 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-29 16:03:45 +00:00
Razvan Maries 0cb7aac5bd Backed out changeset 4a6818e6c81a (bug 1676966) for perma failures on AsyncCompositionManager.cpp. CLOSED TREE 2020-12-29 04:06:23 +02:00
Jonathan Kew 9e08463270 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-28 13:15:02 +00:00
Jonathan Kew ddbbd71f00 Bug 1669855 - Allow FindFamily to return a possible base family for a legacy styled-family name, as a temporary resolution until full font info is loaded. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96397
2020-12-26 17:12:30 +00:00
Jonathan Kew b6304045e1 Bug 1669855 - Don't block on InitOtherFamilyNames searching for a possible legacy family name in FindAndAddFamilies. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96396
2020-12-26 17:12:17 +00:00
Jonathan Kew b9cf1664fb Bug 1669855 - Support triggering the background font-info loader immediately if it is currently deferred, and use this to implement InitOtherFamilyNames for the shared font list. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96395
2020-12-26 17:12:04 +00:00
Jonathan Kew 7d71684ea4 Bug 1669855 - Add a primary-name-only parameter to FindFamily, to allow it to skip searching for aliases, and use this when initializing Windows font substitutions. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96394
2020-12-26 17:11:52 +00:00
Jonathan Kew 73688b3c3d Bug 1669855 - Return a boolean from InitOtherFamilyNames to indicate whether the initialization is complete. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96393
2020-12-26 17:11:44 +00:00
Mihai Alexandru Michis 2aea8e093c Backed out changeset 465526830144 (bug 1684170) for causing talos failures.
CLOSED TREE
2020-12-25 07:04:27 +02:00
Andrew Osmond 1510060a56 Bug 1684170 - Decouple WebRender and Software WebRender gfxConfig features. r=jrmuizel
Lack of support of (hardware) WebRender should not block Software
WebRender support. This can happen when ANGLE isn't supported, for
example.

Differential Revision: https://phabricator.services.mozilla.com/D100445
2020-12-24 18:23:29 +00:00
Jonathan Kew 2844494240 Bug 1683878 - Use a local autorelease pool in gfxMacPlatformFontList::LookupSystemFont because it may be used off-main-thread. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100341
2020-12-22 16:49:08 +00:00
Jonathan Kew 9ed295eeb1 Bug 1683876 - Use an autorelease pool in gfxMacPlatformFontList::InitSharedFontListForPlatform. r=jrmuizel
Depends on D100335

Differential Revision: https://phabricator.services.mozilla.com/D100337
2020-12-22 15:49:14 +00:00
Andrew Osmond 583dd6ec47 Bug 1683779 - Use only rust constructs to detect SSE2/AVX/NEON support. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100293
2020-12-22 01:37:03 +00:00
Simon Giesecke 9758d919eb Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-17 14:58:18 +00:00
Csoregi Natalia d8c9489b13 Backed out changeset 16d174e7c342 (bug 1583109) for bustage on nsReadableUtils.h. CLOSED TREE 2020-12-16 22:51:26 +02:00
Simon Giesecke 72babae175 Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-16 19:38:23 +00:00
Simon Giesecke 9379d0240f Bug 1679987 - Use nsTokenizedRange where easily possible. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D98308
2020-12-16 19:10:34 +00:00
Andrew Osmond 00670ed214 Bug 1682367 - Add crash report annotation for which WebRender shader is being compiled. r=jrmuizel,chutten
This patch adds infrastructure for crash reporter annotations to
WebRender. This is used to expose the new annotation,
GraphicsCompileShader, to indicate which shader we are in the process of
compiling. We often see crash reports when compiling shaders, and it
would be useful to know which one it is compiling.

This also adds another annotation, IsWebRenderResourcePathOverridden,
which is useful to know if someone overrode the shader resource path for
testing purposes. We can likely ignore any crash reports that have this
annotation set.

Differential Revision: https://phabricator.services.mozilla.com/D99736
2020-12-15 16:24:04 +00:00
Jeff Muizelaar 109e9c3b20 Bug 1679578. Memory report RenderTextureHosts in mRenderTextures. r=mattwoodrow
There might be some overlap with memory counted elsewhere and some of
the size calculations could be wrong but it should give us an overall
picture.

Differential Revision: https://phabricator.services.mozilla.com/D99562
2020-12-15 15:37:11 +00:00
Matt Woodrow 4e7f9b4789 Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya
The main-thread requirements for DXVA appear to have been needed when we initialized a crash guard. We now only run DXVA in the GPU and RDD processes, which don't support crash guards. This removes the main thread dispatch and the crashguard code, and enforces that we're in the GPU/RDD process to init DXVA.

This also removes the DLL blocklist code. This was disabled via pref when in the GPU process, which should be the majority of the time. In rare cases we would have been running DXVA in the RDD process (on older win7 when the GPU process isn't available). In these cases we can just do the same as the GPU process, allowing crashes and recovering from them (and disabling DXVA).

Differential Revision: https://phabricator.services.mozilla.com/D98036
2020-12-14 06:04:13 +00:00
Jonathan Kew 03ce4e3b7a Bug 1681918 - Don't try to use the shared font list in a content process if DWrite failed to get a reference to the system font collection. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D99437
2020-12-11 17:47:47 +00:00
Jeff Muizelaar 14a48de659 Bug 1681832 - Use WaitForVBlank on Win8 or higher. r=aosmond
We can't use WaitForVBlank on Win7 because of a system wide
lock: https://bugs.chromium.org/p/chromium/issues/detail?id=953970#c30

Things should be fine on Win8+. We didn't enable it there earlier
just to be conservative.

Differential Revision: https://phabricator.services.mozilla.com/D99392
2020-12-10 20:30:07 +00:00
Andrew Osmond e73a5b9a7c Bug 1681563 - Record WebRender device resets in telemetry and crash reports on non-Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D99346
2020-12-10 14:26:32 +00:00
Simon Giesecke 4cab6ac723 Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8
This moves parts of IPCMessageUtils.h to two new header files and adapts
the include directives as necessary. The new header files are:
- EnumSerializer.h, which defines the templates for enum serializers
- IPCMessageUtilsSpecializations.h, which defines template specializations
  of ParamTraits with extra dependencies (building upon both IPCMessageUtils.h
  and EnumSerializer.h)

This should minimize the dependencies pulled in by every consumer of
IPCMessageUtils.h

Differential Revision: https://phabricator.services.mozilla.com/D94459
2020-12-10 11:09:21 +00:00
Simon Giesecke e06a2d56fc Bug 1680269 - Fix build when building without MOZ_GECKO_PROFILER. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D99063
2020-12-09 08:58:06 +00:00
Butkovits Atila df75ae580c Backed out changeset 8c0e2919f6b2 (bug 1678684) for causing Bug 1680661. CLOSED TREE 2020-12-04 11:26:44 +02:00
Matt Woodrow d58b85c3c9 Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya
The main-thread requirements for DXVA appear to have been needed when we initialized a crash guard. We now only run DXVA in the GPU and RDD processes, which don't support crash guards. This removes the main thread dispatch and the crashguard code, and enforces that we're in the GPU/RDD process to init DXVA.

This also removes the DLL blocklist code. This was disabled via pref when in the GPU process, which should be the majority of the time. In rare cases we would have been running DXVA in the RDD process (on older win7 when the GPU process isn't available). In these cases we can just do the same as the GPU process, allowing crashes and recovering from them (and disabling DXVA).

Differential Revision: https://phabricator.services.mozilla.com/D98036
2020-12-04 00:49:27 +00:00
Bogdan Tara 10b26e1c74 Backed out changeset b6eb6c19057d (bug 1677094) for WebRender related crashes CLOSED TREE 2020-12-02 21:12:42 +02:00
Jonathan Kew 96ee4b6e22 Bug 1680234 - Accelerate global font fallback on Android by avoiding freetype face creation where possible. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98452
2020-12-02 17:13:59 +00:00
Andrew Osmond 7c7282b4e4 Bug 1677094 - Assert if we lose WebRender if forced via MOZ_WEBRENDER env var. r=jrmuizel
We use MOZ_WEBRENDER to force WebRender on in our testing
infrastructure. We may silently fallback to basic during our tests if we
encounter an error and the test may pass as a result. It would be best
if we asserted we don't lose WebRender while testing.

Differential Revision: https://phabricator.services.mozilla.com/D97004
2020-12-02 17:03:12 +00:00
stransky 86a8ecc95d Bug 1678324 [Linux] Check GdkScreen before we use it, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D97594
2020-11-25 10:08:51 +00:00
Robert Mader 95194022d1 Bug 1669275 - [WR/EGL/X11] Use GLX vsyncsource on mesa. r=stransky
This allows mesa to continue using the existing vsync implementation.

Differential Revision: https://phabricator.services.mozilla.com/D92466
2020-11-24 13:30:19 +00:00
Simon Giesecke dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke 262d17a458 Bug 1676356 - Avoid including ServoStyleConsts.h in header files. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D96536

Depends on D96535
2020-11-23 16:08:47 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Jonathan Kew 1839bfca69 Bug 1678116 - On recent macOS systems, avoid expensive initialization of the system font family in content processes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D97702
2020-11-20 00:06:51 +00:00
Masayuki Nakano 5595d1bbcc Bug 1676298 - Make `gfxPlatform::AsyncPanZoomEnabled()` return true if Fission is enabled r=botond
For handling OOP iframes, APZ is required for hit testing.  Therefore, we
should treat APZ is enabled if Fission is enabled (even if on a non-Fission
window).

Differential Revision: https://phabricator.services.mozilla.com/D97399
2020-11-18 18:59:43 +00:00
coderboncuk c8b12f5aa2 Bug 1676299 - Removed the xMajor parameter from BaseMatrix::ScaleFactors() r=botond
Differential Revision: https://phabricator.services.mozilla.com/D97449
2020-11-18 18:53:01 +00:00
Sylvestre Ledru bebb9f9181 Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp
It is bringing some minor changes

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90795
2020-11-18 09:05:59 +00:00
Dzmitry Malyshau 67a1f9eb04 Bug 1629357 - Make WebGPU dependent on WebRender feature r=aosmond
WebGPU itself doesn't care about WebRender or even the GPU process.
However, the presentation to canvas as written today only works with WebRender, so
it seems fine to have it as a dependency in general.

An alternative could be to just fail getContext() call if webrender is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D70888
2020-11-16 15:25:39 +00:00
Jonathan Kew 76aa84acec Bug 1673397 - Check face name of DirectWrite font, to ensure we find the right family member. r=lsalzman
This is a somewhat speculative fix, as I haven't been able to reproduce the issue locally,
but it seems like the right thing to do given that (AFAIK) the DirectWrite APIs don't
make any promises about consistent ordering of faces within the list.

Differential Revision: https://phabricator.services.mozilla.com/D97043
2020-11-14 18:21:06 +00:00
Mihai Alexandru Michis ba567fa55c Backed out changeset 0529f89855bd (bug 1673397) for causing awsy failures. 2020-11-14 07:01:24 +02:00