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

8426 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 7908209483 Bug 1630912. Add a simple way to observe vsync on the mainthread. r=jrmuizel
I had to mess with the refcounting of Display (and hence destructors) because we create a NewRunnableMethod inside Display that holds a pointer to |this|. There are versions of NewRunnableMethod that don't take a ref but I'm not sure of the lifetime of Display, so easier to just take a ref since several of the subclasses are already refcounted.

Differential Revision: https://phabricator.services.mozilla.com/D71303
2020-05-01 23:32:30 +00:00
Andrew Osmond f5baf0eea6 Bug 1632259 - Refactor WebRender configuration logic in gfxPlatform to be testable. r=jrmuizel
We have encountered issues when rolling out WebRender because the
configuration logic is quite complicated. It would serve us well to have
it in a form that we can easily test. This patch does said refactor, as
well as adds an initial set of tests.

Differential Revision: https://phabricator.services.mozilla.com/D72027
2020-05-04 01:01:53 +00:00
Simon Giesecke d62827d0da Bug 1628692 - Fix FallibleTArray handling in gfxContext::CurrentDash. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D71576
2020-04-29 08:58:36 +00:00
Jonathan Kew b51adde34b Bug 1633354 - Fix visibility attribute for language-pack fonts on windows. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D72609
2020-04-27 14:38:04 +00:00
Sylvestre Ledru 34acbb653a Bug 1619165 - Reformat recent changes to the Google coding style r=andi
First reformat with clang-format 10

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Simon Giesecke 191a830575 Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70831
2020-04-24 13:31:14 +00:00
Nicolas Silva 119986111e Bug 1631039 - Remove WebRender's recording infrastructre. r=gw
The code is untested, and mostly obsoleted by (multi) frame captures.
Also it gets in the way of some other changes I need to make.

Differential Revision: https://phabricator.services.mozilla.com/D71372
2020-04-22 08:49:38 +00:00
Lee Salzman a8641e2018 Bug 1622826 - stop gfxFontInfoLoader on xpcom-shutdown. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71684
2020-04-21 12:07:58 +00:00
Jamie Nicol d9a1b3bbde Bug 1604615 - Use optimized shader source in webrender. r=jrmuizel
Add a gecko pref "gfx.webrender.use-optimized-shaders". If enabled,
then when attempting to compile a webrender shader first look for the
optimized source. If the optimized source is not present, emit a
warning and fall back to the unoptimized source.

Use the optimized source by default in wrench, and add the flag
"--use-unoptimized-shaders" to override this.

Differential Revision: https://phabricator.services.mozilla.com/D70033
2020-04-21 10:32:15 +00:00
Arash Fotouhi 498ff8cbea Bug 1629426 - Remove redundant return statement. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D71495
2020-04-20 03:00:12 +00:00
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