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

8516 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar 5b6964a339 Bug 1631312. Move the check for UseWebRenderDCompWin(). r=sotaro
Bug 1630629 moved the check UseWebRenderDCompWin before it had been
initialized. This moves it below so that DirectComposition isn't
disabled everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D71498
2020-04-20 06:11:52 +00:00
Bert Peers 83c81ac68c Bug 1630389 - Enable WaitForVBlank by default on Windows 10 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D71097
2020-04-17 17:30:36 +00:00
Jeff Muizelaar ac7ae315e5 Bug 1630629. Block WebRender on Intel if no DComp. r=aosmond
This moves the DirectComposition configuration code before
the WebRender configuration code so that we can depend
on the results to decide whether to user WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D71213
2020-04-17 01:43:05 +00:00
Andreea Pavel 343b5d0156 Backed out changeset 923c7f562468 (bug 1630629) because phabricator version is not the same as one on try on a CLOSED TREE 2020-04-17 02:39:26 +03:00
Jeff Muizelaar 9bc49efb81 Bug 1630629. Block WebRender on Intel if no DComp. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D71213
2020-04-16 19:45:57 +00:00
Jeff Muizelaar 50c4715de4 Bug 1630371 - Disable DirectComposition when we have a scaled resolution and no hardware stretching. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D71089
2020-04-16 14:54:17 +00:00
Arthur Iakab 3928665a70 Backed out changeset af41b9549456 (bug 1630389) for causing mass Windows failures.
CLOSED TREE
2020-04-16 03:36:36 +03:00
Bert Peers 7c32464a6c Bug 1630389 - Enable WaitForVBlank by default on Windows 10 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D71097

--HG--
extra : moz-landing-system : lando
2020-04-15 22:00:17 +00:00
Jeff Muizelaar 7158ea87e7 Bug 1630279 - Disable the disabling of DComp so we get more testing. r=aosmond
This is in anticipation of having a looser condition for enabling
DComp. Until that code is ready we might as well get more testing.

Differential Revision: https://phabricator.services.mozilla.com/D71060

--HG--
extra : moz-landing-system : lando
2020-04-15 17:30:56 +00:00
Jonathan Kew 230f11b26b Bug 1629787 - Initialize font metrics via harfbuzz API rather than reading tables directly, so that variations are respected. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D71029

--HG--
extra : moz-landing-system : lando
2020-04-15 14:14:55 +00:00
sotaro 7552fe3e1e Bug 1626822 - Add a way to enable WebRender without GPU process on Windows r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D69771

--HG--
extra : moz-landing-system : lando
2020-04-14 03:27:12 +00:00
Brindusan Cristian 2ad9b58e73 Backed out changeset d05ac327b65e (bug 1626822) for bustages at gfxPlatform.cpp. CLOSED TREE 2020-04-14 03:12:33 +03:00
sotaro fb4859cf94 Bug 1626822 - Add a way to enable WebRender without GPU process on Windows r=jrmuizel
WebRender could be used when WebRender does not use ANGLE. And there is a case that we want to use WebRender with ANGLE for testing.

Differential Revision: https://phabricator.services.mozilla.com/D69771

--HG--
extra : moz-landing-system : lando
2020-04-13 23:55:08 +00:00
Dzmitry Malyshau 5618793de6 Bug 1629024 - Fix literal string cast in WebGPU nightly check r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70552

--HG--
extra : moz-landing-system : lando
2020-04-11 10:18:05 +00:00
Andrew Osmond 0d2780d86c Bug 455077 - Enable color management for all CSS/images, not just tagged images. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D62510

--HG--
extra : moz-landing-system : lando
2020-04-10 13:02:55 +00:00
Chris Martin f187ef5ef8 Bug 1541398 - Force gfxImageSurface for OffscreenSurface in content r=jfkthame
For Win32k lockdown, we can't use gfxWindowsSurface in content for offscreen
surfaces, since it invokes Windows GDI calls.

It appears from testing that a gfxImageSurface works just fine, so this change
just disables the native surface usage for content processes.

Differential Revision: https://phabricator.services.mozilla.com/D70022

--HG--
extra : moz-landing-system : lando
2020-04-07 15:34:36 +00:00
Bert Peers 9051184fab Bug 1628137 - Switch to using WaitForVBlank for vsync on Windows r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D70463

--HG--
extra : moz-landing-system : lando
2020-04-10 02:24:07 +00:00
Dzmitry Malyshau 3d20dd0f60 Bug 1616741 - Force-disable WebGPU when not on Nightly r=kats
Differential Revision: https://phabricator.services.mozilla.com/D70435

--HG--
extra : moz-landing-system : lando
2020-04-09 21:11:09 +00:00
Jonathan Kew b50822cb39 Bug 1627691 - Don't include 'hidden' system fonts when preloading metadata to support the font-selection algorithm. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D70216

--HG--
extra : moz-landing-system : lando
2020-04-09 09:30:40 +00:00
Jonathan Kew afb04b12e3 Bug 1628419 - Don't keep a live CGFont reference in every macOS font entry; only retain it for fonts actually used. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D70225

--HG--
extra : moz-landing-system : lando
2020-04-08 17:35:30 +00:00
Kris Taeleman d6bbb95830 Bug 1622020 - Add DTZ info to about:support. r=botond,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D69839

--HG--
extra : moz-landing-system : lando
2020-04-06 22:49:37 +00:00
Jonathan Kew ad86567b86 Bug 1627605 - Avoid creating strings with shared-memory buffers that could become unmapped on a font-list refresh. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D70025

--HG--
extra : moz-landing-system : lando
2020-04-08 09:53:35 +00:00
Andreas Farre f2fa2e633c Bug 1620594 - Part 5: Use GetMainThreadSerialEventTarget instead of SystemGroup::EventTargetFor. r=nika
This patch also tries to remove the event target entirely if it would
default to the main thread on a null event target.

Depends on D67634

Differential Revision: https://phabricator.services.mozilla.com/D67635

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:07 +00:00
Andreas Farre 63e21eec70 Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika
To be able to remove SystemGroup, NS_ReleaseOnMainThreadSystemGroup
needs to have its dependency on SystemGroup removed. Since all
releases using SystemGroup would've released on the main thread anyway
we can safely replace NS_ReleaseOnMainThreadSystemGroup with
NS_ReleaseOnMainThread.

Depends on D64390

Differential Revision: https://phabricator.services.mozilla.com/D67631

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:23 +00:00
Jonathan Kew 9e55a4c27a Bug 1550037 - patch 3 - Remove mAddr from the ShmBlock struct, as mShmem->memory() is now a trivial inline accessor. r=jwatt
In mozilla::ipc::SharedMemory, the memory() method was virtual, so we cached the address here
(although the compiler would likely have inlined the accessor as the `final` concrete subclass
was known). Anyhow, in base::SharedMemory it's a trivial (non-virtual) accessor, so there's
no sense in shadowing it here.

Differential Revision: https://phabricator.services.mozilla.com/D68789

--HG--
extra : moz-landing-system : lando
2020-04-07 12:30:42 +00:00
Jonathan Kew c43ebd1186 Bug 1550037 - patch 2 - Ensure the font-list memory blocks passed to content processes are shared as readonly copies. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D68779

--HG--
extra : moz-landing-system : lando
2020-04-07 12:30:30 +00:00
Jonathan Kew 715e096b9a Bug 1550037 - patch 1 - Migrate shared font-list code from mozilla::ipc::SharedMemoryBasic to base::SharedMemory APIs. r=jwatt
The base::SharedMemory class provides APIs to create a "read-only" copy of a shared memory block,
which means it can be shared to a child process without the risk that the child might map it as
writable and corrupt the contents. We want to use this facility for the font list, hence switching
the shared-memory APIs used.

Differential Revision: https://phabricator.services.mozilla.com/D68778

--HG--
extra : moz-landing-system : lando
2020-04-07 12:30:17 +00:00
Mihai Alexandru Michis 5da80eeda9 Backed out 3 changesets (bug 1550037) for causing bustages in SharedFontList-impl.h
CLOSED TREE

Backed out changeset 34ebd6260867 (bug 1550037)
Backed out changeset 7571e5bc19e7 (bug 1550037)
Backed out changeset 71fdead8eecb (bug 1550037)
2020-04-07 13:11:17 +03:00
Jonathan Kew a7a8713b2b Bug 1550037 - patch 3 - Remove mAddr from the ShmBlock struct, as mShmem->memory() is now a trivial inline accessor. r=jwatt
In mozilla::ipc::SharedMemory, the memory() method was virtual, so we cached the address here
(although the compiler would likely have inlined the accessor as the `final` concrete subclass
was known). Anyhow, in base::SharedMemory it's a trivial (non-virtual) accessor, so there's
no sense in shadowing it here.

Differential Revision: https://phabricator.services.mozilla.com/D68789

--HG--
extra : moz-landing-system : lando
2020-04-07 09:24:32 +00:00
Jonathan Kew 68661385f7 Bug 1550037 - patch 2 - Ensure the font-list memory blocks passed to content processes are shared as readonly copies. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D68779

--HG--
extra : moz-landing-system : lando
2020-04-07 09:24:30 +00:00
Jonathan Kew 1bf1c749a5 Bug 1550037 - patch 1 - Migrate shared font-list code from mozilla::ipc::SharedMemoryBasic to base::SharedMemory APIs. r=jwatt
The base::SharedMemory class provides APIs to create a "read-only" copy of a shared memory block,
which means it can be shared to a child process without the risk that the child might map it as
writable and corrupt the contents. We want to use this facility for the font list, hence switching
the shared-memory APIs used.

Differential Revision: https://phabricator.services.mozilla.com/D68778

--HG--
extra : moz-landing-system : lando
2020-04-07 09:23:24 +00:00
Chris Martin 64e1fb7a45 Bug 1540776 - Have parent send color profile to child during launch r=aosmond,jld,jfkthame,florian
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

For performance reasons, during launch this information is passed directly
to the child through the SetXPCOMProcessAttributes call

Differential Revision: https://phabricator.services.mozilla.com/D66126

--HG--
extra : moz-landing-system : lando
2020-04-02 15:42:15 +00:00
Mirko Brodesser 33bac859bb Bug 1626665: part 3) Declare more methods around `nsTextFrame` `const`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D69573

--HG--
extra : moz-landing-system : lando
2020-04-06 08:36:30 +00:00
Jonathan Kew ed8883688f Bug 1627397 - Fix broken behavior of gfxPlatformFontList::FindAndAddFamilies when shared fontlist is enabled. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D69721

--HG--
extra : moz-landing-system : lando
2020-04-05 23:38:48 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D67574

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Botond Ballo d9d95096f9 Bug 1627482 - Fix non-unified build errors in gfx/thebes. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D69734

--HG--
extra : moz-landing-system : lando
2020-04-05 03:50:14 +00:00
Jonathan Kew cb4f80d249 Bug 1619350 - patch 3 - Add lists of base system fonts for latest Ubuntu and Fedora versions. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D68227

--HG--
extra : moz-landing-system : lando
2020-04-02 23:12:56 +00:00
Jeff Muizelaar ee2859de3e Bug 1627045 - Include some more information about feature status when blacklisting webrender. r=aosmond
This adds a helper for applying gfxinfo state to a gfxFeature. The
helper includes the blacking list reason which should give us some more
information for about:support and telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D69427

--HG--
extra : moz-landing-system : lando
2020-04-02 19:38:19 +00:00
Jonathan Kew db5bae5fe8 Bug 1626844 - Prefer Helvetica over Menlo as fallback font for Georgian on macOS. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D69334

--HG--
extra : moz-landing-system : lando
2020-04-02 16:44:26 +00:00
Dorel Luca ed4bab52bc Backed out changeset b9b3d4f3f430 (bug 1626844) for WR failures in marker-text-matches-georgian.html. CLOSED TREE
--HG--
extra : amend_source : ad81e149675bf77a253fb94c66d1a47bdd066c2a
2020-04-02 19:03:15 +03:00
Jonathan Kew 128000c5eb Bug 1626844 - Prefer Helvetica over Menlo as fallback font for Georgian on macOS. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D69334

--HG--
extra : moz-landing-system : lando
2020-04-02 12:55:05 +00:00
Jonathan Kew 9ae6c0bed1 Bug 1619349 - patch 1 - Record statistics about font-matching behavior in the presContext. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D67787

--HG--
extra : moz-landing-system : lando
2020-04-02 01:38:18 +00:00
Jonathan Kew 1ab7bd6878 Bug 1619350 - patch 2 - Add lists of standard Mac and Windows fonts, and set font-family visibility attributes accordingly in those platform font lists. r=jwatt
These two platforms are the easiest to get started with - as well as accounting for the great majority
of desktop Firefox users.

This patch is based on the OS vendors' lists of fonts shipped with the current version of each OS.

Differential Revision: https://phabricator.services.mozilla.com/D66125

--HG--
extra : moz-landing-system : lando
2020-04-02 01:38:21 +00:00
Jonathan Kew 1e295dc3cc Bug 1619350 - patch 1 - Add a FontVisibility enumeration to determine whether fonts should be visible by name to CSS, and provide a visibility field in font family records. r=jwatt
This replaces and extends the "hidden" flag we currently use on macOS to mark internal system fonts
like .LastResort and .Keyboard that should not be exposed; rather than just a boolean "hidden" flag
we'll have several levels of visibility, some of which the user may opt in to exposing (at the cost
of potentially becoming more fingerprintable).

The current patch assumes three levels besides always-hidden:

  Base     - fonts that are part of the base OS install and always available
  LangPack - fonts that are provided by the OS subject to user's chosen language options
  User     - user-installed fonts that were not provided by the OS

(This categorization may be subject to revision as we learn more about real-world needs and
configurations.)

Differential Revision: https://phabricator.services.mozilla.com/D66124

--HG--
extra : moz-landing-system : lando
2020-04-02 12:36:24 +00:00
Ciure Andrei e1cb0f1e21 Backed out 4 changesets (bug 1619349, bug 1619350) for causing test_font_whitelist.html to fail CLOSED TREE
Backed out changeset ba16b09b5da0 (bug 1619349)
Backed out changeset f8ca02252dfc (bug 1619349)
Backed out changeset 01a2a527aa1a (bug 1619350)
Backed out changeset 67ee13868a44 (bug 1619350)
2020-04-02 04:34:31 +03:00
Miko Mynttinen fa3904e234 Bug 1624016 - Memory report WebRender display list and display item cache r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68279

--HG--
extra : moz-landing-system : lando
2020-04-01 18:43:32 +00:00
Jonathan Kew 82984492e6 Bug 1619349 - patch 1 - Record statistics about font-matching behavior in the presContext. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D67787

--HG--
extra : moz-landing-system : lando
2020-04-01 21:42:36 +00:00
Jonathan Kew 2fe7f23db5 Bug 1619350 - patch 2 - Add lists of standard Mac and Windows fonts, and set font-family visibility attributes accordingly in those platform font lists. r=jwatt
These two platforms are the easiest to get started with - as well as accounting for the great majority
of desktop Firefox users.

This patch is based on the OS vendors' lists of fonts shipped with the current version of each OS.

Differential Revision: https://phabricator.services.mozilla.com/D66125

--HG--
extra : moz-landing-system : lando
2020-04-01 21:42:11 +00:00
Jonathan Kew 503dffb1e0 Bug 1619350 - patch 1 - Add a FontVisibility enumeration to determine whether fonts should be visible by name to CSS, and provide a visibility field in font family records. r=jwatt
This replaces and extends the "hidden" flag we currently use on macOS to mark internal system fonts
like .LastResort and .Keyboard that should not be exposed; rather than just a boolean "hidden" flag
we'll have several levels of visibility, some of which the user may opt in to exposing (at the cost
of potentially becoming more fingerprintable).

The current patch assumes three levels besides always-hidden:

  Base     - fonts that are part of the base OS install and always available
  LangPack - fonts that are provided by the OS subject to user's chosen language options
  User     - user-installed fonts that were not provided by the OS

(This categorization may be subject to revision as we learn more about real-world needs and
configurations.)

Differential Revision: https://phabricator.services.mozilla.com/D66124

--HG--
extra : moz-landing-system : lando
2020-03-26 18:39:43 +00:00
Simon Giesecke 5fbc9ca531 Bug 1626563 - Remove redundant user-provided copy constructors in gfx/thebes. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D69177

--HG--
extra : moz-landing-system : lando
2020-04-01 13:45:40 +00:00
Kartikaya Gupta 30d30f9300 Bug 1622360 - Unwind super sketchy changes to glyph atlas code. r=jrmuizel
Depends on D68863

Differential Revision: https://phabricator.services.mozilla.com/D68864

--HG--
extra : moz-landing-system : lando
2020-04-01 13:40:00 +00:00
Kartikaya Gupta 5daf11b6b4 Bug 1622360 - Remove remaining gfxUtils functions dealing with the render root. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68862

--HG--
extra : moz-landing-system : lando
2020-04-01 13:38:05 +00:00
sotaro be7e3f103f Bug 1625297 - Add InitializeAdvancedLayersConfig() call in gfxWindowsPlatform::HandleDeviceReset() r=nical
This is a short term fix. Bug 1625382  is for long term fix.

Differential Revision: https://phabricator.services.mozilla.com/D68504

--HG--
extra : moz-landing-system : lando
2020-03-30 09:34:09 +00:00
Chris Peterson b994ab8896 Bug 1624789 - Replace MOZ_MUST_USE with [[nodiscard]] in gfx. r=gfx-reviewers,nical
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Differential Revision: https://phabricator.services.mozilla.com/D68152

--HG--
extra : moz-landing-system : lando
2020-03-25 10:35:04 +00:00
Jonathan Kew 684a3ccf96 Bug 1624827 - Synthesize a space for U+3000 in preference to relying on font fallback. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D68181

--HG--
extra : moz-landing-system : lando
2020-03-26 00:08:40 +00:00
Razvan Maries dd48ca6c20 Backed out changeset 8b091426bc10 (bug 1540776) for build bustages. CLOSED TREE 2020-03-26 16:25:45 +02:00
Chris Martin 65292a10f3 Bug 1540776 - Have parent send color profile to child during launch r=aosmond,jld,jfkthame
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

For performance reasons, during launch this information is passed directly
to the child through the SetXPCOMProcessAttributes call

Differential Revision: https://phabricator.services.mozilla.com/D66126

--HG--
extra : moz-landing-system : lando
2020-03-26 13:44:56 +00:00
Andrew Osmond 39137c5f64 Bug 1625002 - Add pref to allow force enabled the WebRender compositor. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68271

--HG--
extra : moz-landing-system : lando
2020-03-25 22:56:29 +00:00
sotaro 16996a4499 Bug 1624783 - Remove redundant XRE_IsParentProcess() check in gfxPlatform::InitWebRenderConfig() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D68143

--HG--
extra : moz-landing-system : lando
2020-03-25 10:37:25 +00:00
Jonathan Kew e819c27aa8 Bug 1309934 - Apply NFC normalization in preference to falling back to a different font for combining marks. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67945

--HG--
extra : moz-landing-system : lando
2020-03-23 21:37:12 +00:00
Jonathan Kew d68fbcd645 Bug 1624225 - Don't reject 'fvar' table in a variation font if no instance records are present, as the font is still valid. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67785

--HG--
extra : moz-landing-system : lando
2020-03-22 21:12:41 +00:00
Kartikaya Gupta 29d8eb2643 Bug 1622360 - Delete GetRenderRootForFrame and dependent codepaths. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D67615

--HG--
extra : moz-landing-system : lando
2020-03-20 13:29:03 +00:00
Kartikaya Gupta fcc6b07839 Bug 1622360 - Remove the split_render_roots pref and immediate codepaths that depend on it. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D67613

--HG--
extra : moz-landing-system : lando
2020-03-20 13:54:03 +00:00
Kartikaya Gupta 9b09b6c55e Bug 1623681 - Fix comments referring to incorrect file. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D67512

--HG--
extra : moz-landing-system : lando
2020-03-20 00:03:04 +00:00
Jeff Muizelaar 6cd54550a2 Bug 1623492. Expose OS compositor to telemetry.
Differential Revision: https://phabricator.services.mozilla.com/D67415

--HG--
extra : moz-landing-system : lando
2020-03-19 02:37:21 +00:00
sotaro 0f39c077be Bug 1618175 - Handle ADVANCED_LAYERS as blocked with WebRender r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D64709

--HG--
extra : moz-landing-system : lando
2020-03-16 22:38:35 +00:00
Kenny Levinsen 510af72a67 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

Differential Revision: https://phabricator.services.mozilla.com/D65878

--HG--
extra : moz-landing-system : lando
2020-03-16 23:24:39 +00:00
Mihai Alexandru Michis 3dc26ddcf3 Backed out changeset 18c3c5e79f1c (bug 1540776) for causing xpcshell failures in test_BHRObserver.js
CLOSED TREE
2020-03-17 00:41:38 +02:00
Chris Martin a228b3b0d4 Bug 1540776 - Add sync IPC message for content to request color profile r=aosmond,jld
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

Differential Revision: https://phabricator.services.mozilla.com/D66126

--HG--
extra : moz-landing-system : lando
2020-03-16 16:31:51 +00:00
Jonathan Kew 0e3de64ad3 Bug 1619180 - Speculative patch, add exception handling around gfxDWriteFont::MeasureGlyphWidth. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D66115

--HG--
extra : moz-landing-system : lando
2020-03-16 13:57:32 +00:00
Coroiu Cristina 9cec9676e6 Backed out changeset ef75f461147c (bug 1614212) for GTest failures 2020-03-16 03:52:15 +02:00
Kenny Levinsen a3358b92f4 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

Differential Revision: https://phabricator.services.mozilla.com/D65878

--HG--
extra : moz-landing-system : lando
2020-03-16 00:05:20 +00:00
sotaro da70969622 Bug 1620491 - Disable native compositor when hardware stretching is not supported r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D66704

--HG--
extra : moz-landing-system : lando
2020-03-13 14:57:40 +00:00
Lee Salzman ec2805f08f Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-13 18:18:14 +00:00
Mihai Alexandru Michis 611150ca29 Backed out changeset 8bc3cd786136 (bug 1614212) for causing leaks.
CLOSED TREE
2020-03-13 19:21:34 +02:00
Kenny Levinsen 04165219d8 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

Differential Revision: https://phabricator.services.mozilla.com/D65878

--HG--
extra : moz-landing-system : lando
2020-03-13 16:04:36 +00:00
shindli 8a8793039d Backed out 12 changesets (bug 1612941) for webrender linting bustage CLOSED TREE
Backed out changeset bbb8ec38f354 (bug 1612941)
Backed out changeset cd798d2a0433 (bug 1612941)
Backed out changeset c02c4c5bf7f7 (bug 1612941)
Backed out changeset 2e0c9b9bd507 (bug 1612941)
Backed out changeset ec0fffd12dec (bug 1612941)
Backed out changeset 2d6f65fe6ec0 (bug 1612941)
Backed out changeset dd1a92041bb4 (bug 1612941)
Backed out changeset 3cae17a5ec80 (bug 1612941)
Backed out changeset edfca5676513 (bug 1612941)
Backed out changeset f94d5c7cee41 (bug 1612941)
Backed out changeset 67bba000daba (bug 1612941)
Backed out changeset 60151122db4d (bug 1612941)
2020-03-11 14:28:55 +02:00
Lee Salzman 0b6ec64adc Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:07 +00:00
shindli 0830b5e7f8 Backed out 12 changesets (bug 1612941) for causing bustages CLOSED TREE
Backed out changeset 29f9f745ff65 (bug 1612941)
Backed out changeset d92e03315f8d (bug 1612941)
Backed out changeset 9b1360daa75a (bug 1612941)
Backed out changeset ad7f43d72b08 (bug 1612941)
Backed out changeset 30b28118362a (bug 1612941)
Backed out changeset 76f80dce8875 (bug 1612941)
Backed out changeset 375896f494ae (bug 1612941)
Backed out changeset bd8ba66dc2ac (bug 1612941)
Backed out changeset 54ec5a6e8e45 (bug 1612941)
Backed out changeset 419105739e53 (bug 1612941)
Backed out changeset c198dedeaa1b (bug 1612941)
Backed out changeset 87ddcdfc5fcf (bug 1612941)
2020-03-11 14:01:26 +02:00
Lee Salzman f1882a34ed Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 11:47:16 +00:00
Jonathan Kew 315b16ea22 Bug 1621248 - Declare various gfxPlatform and font-list subclasses as 'final'. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66204

--HG--
extra : moz-landing-system : lando
2020-03-10 15:00:56 +00:00
Jonathan Kew c8c463d812 Bug 1621232 - Devirtualize and merge CreateFontGroup implementations, as there is no longer any platform dependency. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66197

--HG--
extra : moz-landing-system : lando
2020-03-10 13:20:37 +00:00
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
gfx::Color is currently misused in many places. The DrawTargets expect
the color space to be in device space, e.g. what we are actually going
to draw using. Everything sitting above generally deals with sRGB, as
specified in CSS. Sometimes we missed the conversion from sRGB to device
space when issuing draw calls, and similarly sometimes we converted the
color to device space twice.

This patch splits the type in two. sRGBColor and DeviceColor now
represent sRGB and device color spaces respectively. DrawTarget only
accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via
the ToDeviceColor helper API. The reftests now pass with color
management enabled for everything (e.g. CSS) instead of just tagged
raster images.

There will be a follow up patch to enable color management everywhere by
default on all supported platforms.

Differential Revision: https://phabricator.services.mozilla.com/D64771

--HG--
extra : moz-landing-system : lando
2020-03-09 14:16:17 +00:00
Jonathan Kew 3df4ab8b5e Bug 1620111 - Eliminate sync-IPC message ReadFontList, instead use SetXPCOMProcessAttributes to pass font list to the child process on Android. r=lsalzman,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D65742

--HG--
extra : moz-landing-system : lando
2020-03-09 12:27:45 +00:00
Tim Nguyen 6cec94d9be Bug 1620328 - Set conic-gradient angle range on Skia. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D65910

--HG--
extra : moz-landing-system : lando
2020-03-08 21:46:06 +00:00
Jonathan Kew e1a0b48294 Bug 1620125 - Don't assume mVerticalMetrics has necessarily been initialized before DrawOneGlyph is called. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D65567

--HG--
extra : moz-landing-system : lando
2020-03-05 18:07:17 +00:00
Cameron McCormack a1ff54a54f Bug 1607356 - Move OTS sanitization to background thread. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D65267

--HG--
extra : moz-landing-system : lando
2020-03-04 18:25:08 +00:00
Simon Giesecke dce1e48caf Bug 1613985 - Use default for equivalent-to-default constructors/destructors in gfx. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65288

--HG--
extra : moz-landing-system : lando
2020-03-04 15:39:20 +00:00
Kris Taeleman fd73d4c35e Bug 1616623 - Switching gfx telemetry to user lifetimes and removing last_seen r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D63361

--HG--
extra : moz-landing-system : lando
2020-02-25 22:43:20 +00:00
Bert Peers 447713c3c6 Bug 1613260 - Support per-task scale for local space rasterization r=gw,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D63434

--HG--
extra : moz-landing-system : lando
2020-03-03 00:31:09 +00:00
Jonathan Kew 640dab2a62 Bug 1617602 - Don't allow src:local() to look up hidden system font names. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D63860

--HG--
extra : moz-landing-system : lando
2020-03-01 23:51:46 +00:00
Jonathan Kew f7cf3de506 Bug 1616995 - patch 2 - Support vertical skew for upright-vertical fonts in webrender. r=lsalzman
Depends on D63893

Differential Revision: https://phabricator.services.mozilla.com/D64746

--HG--
extra : moz-landing-system : lando
2020-02-28 15:36:19 +00:00
Jonathan Kew b6b828ed19 Bug 1616995 - patch 1 - Correct the axis of skew for synthetic-oblique glyphs in upright-vertical mode. r=lsalzman
This corrects the direction of the skew for non-WebRender drawing.

For WR, I guess we'll need to adjust the matrix that's generated in
FontTransform::synthesize_italics (or something like that).

Differential Revision: https://phabricator.services.mozilla.com/D63893

--HG--
extra : moz-landing-system : lando
2020-02-28 14:55:39 +00:00
Martin Stransky a8b9ee58f8 Bug 1618367 [Wayland] Make nsWaylandDisplay usable on child processes, rename dmabuf preferences, r=jhorak
- Increment MAX_DISPLAY_CONNECTIONS to 5 (main, compositor, renderer, and two media threads).
- Stop posting events to message loop when it's deleted. Use message loop shutdown observer for it.
- Shutdown nsWaylandDisplay event queue on both chrome and content processes.
- Use static preference variables which means dmabuf prefs are renamed to: widget.wayland-dmabuf-textures.enabled widget.wayland-dmabuf-webgl.enabled widget.wayland-dmabuf-vaapi.enabled

Differential Revision: https://phabricator.services.mozilla.com/D64474

--HG--
extra : moz-landing-system : lando
2020-02-28 10:09:04 +00:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Simon Giesecke aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Doug Thayer b405df3a9a Bug 1615921 - Skip writing to pdf file if shutting down r=jwatt
We are intending to advance the toolkit.shutdown.lateWriteChecksStage
pref, to collect information (and crash on DEBUG) about writes which
happen during and after the xpcom-shutdown-threads notification. This
is producing failures in the PrintTargetPDF.cpp destructor because
we end up calling write_func and writing to (I presume) the target
PDF. This _feels_ like something we can just skip, so that's the
review request I am sending, but please let me know if it's critical
that we write to this file during shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D63218

--HG--
extra : moz-landing-system : lando
2020-02-24 17:54:09 +00:00
Jonathan Kew be14974fec Bug 1617596 - Move mSpaceGlyph to gfxFont instead of defining it separately in each subclass, and de-virtualize gfxFont::GetSpaceGlyph(). r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63855

--HG--
extra : moz-landing-system : lando
2020-02-24 14:36:52 +00:00
Bob Owen cad856864a Bug 1598585 Part 3: Detect and handle device reset in CanvasTranslator. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60889

--HG--
extra : moz-landing-system : lando
2020-02-24 10:50:14 +00:00
Martin Stransky b929ff1886 Bug 1616680 [Wayland] Use widget.wayland_dmabuf_vaapi.enabled to enable VAAPI / dmabuf video playback, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63381

--HG--
extra : moz-landing-system : lando
2020-02-24 09:50:23 +00:00
Jonathan Kew 7267cf1347 Bug 1616798 - Ensure SetCharMapRunnable holds a reference to the charmap. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D63461

--HG--
extra : moz-landing-system : lando
2020-02-23 12:15:00 +00:00
Sylvestre Ledru 6ff950c0a4 Bug 1617437 - gfxFontUtils.cpp: Fix two -Wnon-c-typedef-for-linkage warnings r=jfkthame
Depends on D63783

Differential Revision: https://phabricator.services.mozilla.com/D63784

--HG--
extra : moz-landing-system : lando
2020-02-23 12:06:40 +00:00
Jonathan Kew f6f390050e Bug 1617037 - Don't instantiate a CTFont to implement SetupVariationRanges on macOS, just read the font tables directly. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63763

--HG--
extra : moz-landing-system : lando
2020-02-22 14:35:31 +00:00
Chris Martin 726cba0bb5 Bug 1540776 - Change CMSOutputProfile functions to return nsArray r=gcp
Currently, the GetCMSOutputProfile() and related methods pass their output
using the old C-style "ptr, len" parameters. This makes them more difficult
to deal with later in this change when they need to be safely passed over IPC.

This refactors them to return nsTArray<uint8_t> results instead. I also
removed some old cruft and refactored the existing code.

Differential Revision: https://phabricator.services.mozilla.com/D63583

--HG--
extra : moz-landing-system : lando
2020-02-21 21:27:53 +00:00
Timothy Nikkel f3312286c6 Bug 1577507. Disable GPU process on mac even if prefs try to enable it. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D63537

--HG--
extra : moz-landing-system : lando
2020-02-21 11:40:31 +00:00
Tim Nguyen 08ab9ceb1e Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-21 00:12:47 +00:00
Csoregi Natalia ff5e1dafb1 Backed out changeset bf981458da0c (bug 1616587) for bustage on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 02:07:11 +02:00
Tim Nguyen edf9be08c3 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 23:50:06 +00:00
Csoregi Natalia 30fc2949d8 Backed out changeset 2d804daeaccb (bug 1616587) for bustages on DrawTargetCairo.cpp. CLOSED TREE 2020-02-21 01:19:36 +02:00
Tim Nguyen 41df136301 Bug 1616587 - Implement conic-gradient for Skia graphics backend. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D63415

--HG--
extra : moz-landing-system : lando
2020-02-20 22:58:59 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

Differential Revision: https://phabricator.services.mozilla.com/D62604

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Jonathan Kew bbb6c04d13 Bug 1616268 - Back out changeset 780285749c80 (bug 1611617) for cold-start regressions on various sites. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D63376

--HG--
extra : moz-landing-system : lando
2020-02-20 02:33:41 +00:00
Nicolas Silva 8d2152543a Bug 1616592 - Control the batching lookback count via a pref. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D63336

--HG--
extra : moz-landing-system : lando
2020-02-20 03:45:17 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

Differential Revision: https://phabricator.services.mozilla.com/D62604

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Jonathan Kew bc43d9263d Bug 1616193 - If Face::SetCharacterMap is called from a stylo thread, make it post a runnable instead of attempting to do IPC itself. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D63210

--HG--
extra : moz-landing-system : lando
2020-02-19 11:28:07 +00:00
Andrew Osmond 759c48f75e Bug 1614377 - Switch the WebRender rollout to use allowlist rules. r=jrmuizel
Now that GfxInfo supports allowlisting, we can port our existing
configuration in gfxPlatform to using allowlist rules. This will
greatly increase maintainability and certainty that the expected
devices are getting WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D62325

--HG--
extra : moz-landing-system : lando
2020-02-18 13:56:10 +00:00
Jonathan Kew 5c0973b9b0 Bug 1611617 - Don't let gfxFontGroup::GetFirstValidFont return a font from the font-family list that doesn't support the given character (prefer to fall back to the default font). r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D61068

--HG--
extra : moz-landing-system : lando
2020-02-17 09:29:21 +00:00
Bogdan Tara e7e4a237f0 Backed out changeset de247892d14a (bug 1614377) for gfxPlatform.cpp related failures CLOSED TREE 2020-02-17 03:24:12 +02:00
Andrew Osmond 56e9347749 Bug 1614377 - Switch the WebRender rollout to use allowlist rules. r=jrmuizel
Now that GfxInfo supports allowlisting, we can port our existing
configuration in gfxPlatform to using allowlist rules. This will
greatly increase maintainability and certainty that the expected
devices are getting WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D62325

--HG--
extra : moz-landing-system : lando
2020-02-14 19:26:17 +00:00
Olli Pettay 7c5324c60e Bug 1506376, remove useless private: from VsyncEvent struct r=mattwoodrow
Depends on D61083

Differential Revision: https://phabricator.services.mozilla.com/D62032

--HG--
extra : moz-landing-system : lando
2020-02-14 16:28:08 +00:00
Jonathan Kew a6920a844b Bug 1612610 - Use the bounding box of the full textrun range, not just an individual glyph run, when double-buffering for color/bold drawing. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62900

--HG--
extra : moz-landing-system : lando
2020-02-14 16:16:57 +00:00
Bogdan Tara 74db09d838 Backed out 3 changesets (bug 1506376) for xpcshell failures CLOSED TREE
Backed out changeset fe7215eefa28 (bug 1506376)
Backed out changeset 621ec02db41c (bug 1506376)
Backed out changeset adbd602610a3 (bug 1506376)
2020-02-14 17:07:49 +02:00
Olli Pettay 0d9b7960a2 Bug 1506376, remove useless private: from VsyncEvent struct r=mattwoodrow
Depends on D61083

Differential Revision: https://phabricator.services.mozilla.com/D62032

--HG--
extra : moz-landing-system : lando
2020-02-14 13:55:02 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Jonathan Kew 74210dcbe1 Bug 1614600 - Avoid instantiating an FT_Face for each font just to read properties during font-list initialization. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62441

--HG--
extra : moz-landing-system : lando
2020-02-12 18:34:33 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Emilio Cobos Álvarez d7841a5f17 Bug 1614208 - Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert
We include it everywhere because it's included from gfxTypes.h.

This should avoid including all the generated bindings _everywhere_.

Differential Revision: https://phabricator.services.mozilla.com/D62174

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
Andrew Osmond 9b47c699df Bug 1613683 - Ship WebRender on Intel/AMD devices with small screens and a battery to beta. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D62321

--HG--
extra : moz-landing-system : lando
2020-02-10 20:27:12 +00:00
Gerald Squelart fbbc5d66db Bug 1614013 - Fix RAII Profiler object scopes - r=gregtatum
In bug 1578329 I introduced two scoping mistakes:
- A marker was made to have a shorter duration.
- A label was scoped too short and so would most likely be missed during
  sampling.
This patch reverts to the original wider scope.

Differential Revision: https://phabricator.services.mozilla.com/D62274

--HG--
extra : moz-landing-system : lando
2020-02-10 20:44:33 +00:00
Jonathan Kew e7b074c98a Bug 1613996 - Try to avoid instantiating an FT_Face just to read the font's charmap for FindFontForChar. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D62152

--HG--
extra : moz-landing-system : lando
2020-02-09 04:18:22 +00:00
Andrew Osmond 0173964fde Bug 1604535 - Disable OMTP on some 32-bit systems due to memory pressure. r=jrmuizel
We will no longer allow OMTP on 32-bit systems with less than 2GB of RAM
and 2 or fewer cores. These systems are unlikely to realize a benefit
from OMTP and see a higher than normal incidence of OOM crashes in the
content process due to OMTP having a higher memory footprint.

Differential Revision: https://phabricator.services.mozilla.com/D60058

--HG--
extra : moz-landing-system : lando
2020-02-03 11:39:06 +00:00
Nicolas Silva 4269e36963 Bug 1613167 - Enable/Disable rayon in WebRender via pref. r=gw
We need a way to switch it on and off to compare the performance and power usage of various test cases.
The new pref is "webrender.enable-multithreading" and does not require a restart.

Differential Revision: https://phabricator.services.mozilla.com/D61589

--HG--
extra : moz-landing-system : lando
2020-02-05 09:51:14 +00:00
Ting-Yu Lin b19983c13e Bug 1610670 - Add AllPhysicalCorners() to support range-based for loops. r=mats
This patch is generated via:
1. Manually modify gfx/2d/Types.h
2. Run the following script and clang-format.

```

function rename() {
    echo "Renaming $1 to $2"
    rg -l "$1" | xargs sed -i -E -e s/"$1"/"$2"/g
}

rename "NS_FOR_CSS_FULL_CORNERS\(i\)" "for (const auto i : mozilla::AllPhysicalCorners())"
rename "NS_FOR_CSS_FULL_CORNERS\(corner\)" "for (const auto corner : mozilla::AllPhysicalCorners())"
```

Differential Revision: https://phabricator.services.mozilla.com/D61251

--HG--
extra : moz-landing-system : lando
2020-02-04 03:28:35 +00:00
Jonathan Kew 2d4e9aeb66 Bug 1611997 - Invert the sign of the slant angle when mapping between CSS font-style and OpenType 'slnt' axis. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D61228

--HG--
extra : moz-landing-system : lando
2020-01-31 15:05:52 +00:00
Jonathan Kew ab65dd885f Bug 1612822 - Refactor text decoration offset/thickness computations. r=emilio
We replace SetWidthIfLength and SetOffsetIfLength with ComputeDecorationLine{Thickness,Offset} functions,
and consolidate more of the computation of the offset within this function to simplify callers.

Differential Revision: https://phabricator.services.mozilla.com/D61454

--HG--
extra : moz-landing-system : lando
2020-02-03 14:38:47 +00:00
Andrew Osmond 8370ff7b34 Bug 1611193 - Allow WebRender on late beta/release for recent Windows 10 builds and NVIDIA drivers. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D61373

--HG--
extra : moz-landing-system : lando
2020-01-31 16:18:15 +00:00
Andrew Osmond ff69c48b54 Backed out changset b371f612cd60 (Bug 1604535) for performance regressions.
Differential Revision: https://phabricator.services.mozilla.com/D61298

--HG--
extra : moz-landing-system : lando
2020-01-30 13:11:08 +00:00
Jonathan Kew 4a6c3ec3f6 Bug 1611610 - Don't increase glyph advance for synthetic bold if the glyph is zero-width. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D61065

--HG--
extra : moz-landing-system : lando
2020-01-25 15:43:45 +00:00
Jonathan Kew f360407017 Bug 1611589 - Fix precedence of font-feature-settings vs disabling of ligatures due to letter-spacing. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D61060

--HG--
extra : moz-landing-system : lando
2020-01-25 12:18:00 +00:00
Andrew Osmond 0b6c7eca9d Bug 1604535 - Disable OMTP on 32-bit systems due to memory pressure. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60058

--HG--
extra : moz-landing-system : lando
2020-01-22 13:46:59 +00:00
Jonathan Kew 4cd64f80ed Bug 1608100 - Distinguish (in console log messages) between failure to start font download at all vs download that fails. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D59328

--HG--
extra : moz-landing-system : lando
2020-01-21 08:40:12 +00:00
Sylvestre Ledru 187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D60354

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
Emilio Cobos Álvarez 5cd5e6f148 Bug 1609996 - Remove mozilla::Swap in favor of std::swap. r=froydnj
Now mfbt/Move.h is empty except for that excellent comment about move
semantics... Should we put it somewhere else and delete the header as a
follow-up? Or just delete the header and carry on?

Differential Revision: https://phabricator.services.mozilla.com/D60297

--HG--
extra : moz-landing-system : lando
2020-01-20 16:17:06 +00:00
Sylvestre Ledru cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca 506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru 6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00