Brad Werth
e2e3323a40
Bug 1798067 Part 1: Add SupportsHDR to gfxPlatform, refactor macOS to use it. r=gfx-reviewers,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D161364
2022-11-29 02:31:18 +00:00
Butkovits Atila
541201fe13
Backed out 3 changesets (bug 1798067) for causing bustages at gfxPlatformMac.cpp.
...
Backed out changeset dba34dc9a166 (bug 1798067)
Backed out changeset f87001406f29 (bug 1798067)
Backed out changeset 1b59437ed62b (bug 1798067)
2022-11-28 23:56:43 +02:00
Brad Werth
bfde7b9df5
Bug 1798067 Part 1: Add SupportsHDR to gfxPlatform, refactor macOS to use it. r=gfx-reviewers,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D161364
2022-11-28 20:51:17 +00:00
Jonathan Kew
781bb53269
Bug 1784058 - Simplify @font-face format hint handling in gfx/thebes, now that it is explicitly only a single hint, not a set. r=gfx-reviewers,aosmond,lsalzman
...
No functional change, just simplifying the code a bit.
Depends on D154235
Differential Revision: https://phabricator.services.mozilla.com/D154236
2022-08-12 11:25:58 +00:00
Iulian Moraru
6794af9029
Backed out 7 changesets (bug 1784058, bug 650372) for causing wpt failures on format-specifiers-variations.html. CLOSED TREE
...
Backed out changeset 2aa97ebc8593 (bug 650372)
Backed out changeset 41d1c62f11ac (bug 650372)
Backed out changeset 8340c08ff8b6 (bug 650372)
Backed out changeset cbe59d9bbcbb (bug 1784058)
Backed out changeset 40b00a214019 (bug 1784058)
Backed out changeset 714d84a2680a (bug 1784058)
Backed out changeset e5b24489d365 (bug 1784058)
2022-08-11 23:24:20 +03:00
Jonathan Kew
c9bc99865a
Bug 1784058 - Simplify @font-face format hint handling in gfx/thebes, now that it is explicitly only a single hint, not a set. r=gfx-reviewers,aosmond,lsalzman
...
No functional change, just simplifying the code a bit.
Depends on D154235
Differential Revision: https://phabricator.services.mozilla.com/D154236
2022-08-11 18:03:57 +00:00
Cristian Tuns
f124fa4b1e
Backed out 7 changesets (bug 650372, bug 1784058) for causing reftest failures on variation-format-hint-1a.html CLOSED TREE
...
Backed out changeset c78a59ace7ec (bug 650372)
Backed out changeset eea47293ce56 (bug 650372)
Backed out changeset e978496c7ea0 (bug 650372)
Backed out changeset 597837e9753f (bug 1784058)
Backed out changeset 6d71bcfcc1a1 (bug 1784058)
Backed out changeset 5d21f6e4f8e0 (bug 1784058)
Backed out changeset 35634f66cb37 (bug 1784058)
2022-08-11 10:28:40 -04:00
Jonathan Kew
e42a3850ec
Bug 1784058 - Simplify @font-face format hint handling in gfx/thebes, now that it is explicitly only a single hint, not a set. r=gfx-reviewers,aosmond,lsalzman
...
No functional change, just simplifying the code a bit.
Differential Revision: https://phabricator.services.mozilla.com/D154236
2022-08-11 13:10:02 +00:00
Jonathan Kew
8886c37ac5
Bug 1779205 - part 1 - Make gfxPlatform::HasVariationFontSupport() a static method that does not require a gfxPlatform instance. r=gfx-reviewers,jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D153576
2022-08-04 21:24:11 +00:00
Iulian Moraru
3cba981e96
Backed out 2 changesets (bug 1779205) for causing windows 2012 build bustages on gfxWindowsPlatform. CLOSED TREE
...
Backed out changeset a3b604b751e8 (bug 1779205)
Backed out changeset 49f2cdcc1a6b (bug 1779205)
2022-08-04 17:47:07 +03:00
Jonathan Kew
8eb407358c
Bug 1779205 - part 1 - Make gfxPlatform::HasVariationFontSupport() a static method that does not require a gfxPlatform instance. r=gfx-reviewers,jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D153576
2022-08-04 14:12:51 +00:00
Sandor Molnar
6fb54d7474
Backed out 2 changesets (bug 1779205) for causing browser-chrome failures in gfx/thebes/gfxPlatform.cpp CLOSED TREE
...
Backed out changeset ea288d88571f (bug 1779205)
Backed out changeset 186424c5f4ea (bug 1779205)
2022-08-03 20:16:43 +03:00
Jonathan Kew
6367858ff1
Bug 1779205 - part 1 - Make gfxPlatform::HasVariationFontSupport() a static method that does not require a gfxPlatform instance. r=gfx-reviewers,jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D153576
2022-08-03 15:52:45 +00:00
Pier Angelo Vendrame
2f55a1a885
Bug 1774413: Bundled fonts are not picked up on macOS r=jfkthame
...
Bundled fonts were not picked up because also child processes need to
register them.
Also, they were assigned User visibility, instead of Base, which was
not coherent with other platforms.
Differential Revision: https://phabricator.services.mozilla.com/D150400
2022-08-02 10:30:35 +00:00
Markus Stange
06766c211b
Bug 1765399 - Rename Get/CreateHardwareVsync to GetGlobalVsync, CreateGlobalHardwareVsync and CreateSoftwareVsync. r=smaug
...
This draws a clearer line between hardware vsync and software vsync.
Differential Revision: https://phabricator.services.mozilla.com/D144373
2022-05-05 02:15:17 +00:00
Marian-Vasile Laza
1cd0ac703f
Backed out 16 changesets (bug 1765399) for causing build bustages on RefPtr.h.
...
Backed out changeset 8ff5e213e351 (bug 1765399)
Backed out changeset bd164f5cc8b3 (bug 1765399)
Backed out changeset 939b577eee05 (bug 1765399)
Backed out changeset ee00e3583f42 (bug 1765399)
Backed out changeset e5001537e536 (bug 1765399)
Backed out changeset d5a4004a2955 (bug 1765399)
Backed out changeset d3c1f6c420e3 (bug 1765399)
Backed out changeset d21fca656853 (bug 1765399)
Backed out changeset 5e5a29a99c9e (bug 1765399)
Backed out changeset ce326de1e107 (bug 1765399)
Backed out changeset 3890e83660b0 (bug 1765399)
Backed out changeset 2f3ceca7aefe (bug 1765399)
Backed out changeset 40c47c498858 (bug 1765399)
Backed out changeset 3a3a2aa6de9b (bug 1765399)
Backed out changeset 4a30a4b3d30d (bug 1765399)
Backed out changeset a9115d9d648e (bug 1765399)
2022-05-05 00:30:06 +03:00
Markus Stange
abdaca76a5
Bug 1765399 - Rename Get/CreateHardwareVsync to GetGlobalVsync, CreateGlobalHardwareVsync and CreateSoftwareVsync. r=smaug
...
This draws a clearer line between hardware vsync and software vsync.
Differential Revision: https://phabricator.services.mozilla.com/D144373
2022-05-04 16:13:38 +00:00
Timothy Nikkel
35a0a509c6
Bug 1734571. Remove old unused layers tiling left over code bits. r=gfx-reviewers,aosmond
...
Differential Revision: https://phabricator.services.mozilla.com/D127787
2021-10-19 10:12:25 +00:00
Andrew Osmond
aa22206ca2
Bug 1727603 - Remove gfxVars::UseOMTP. r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D123676
2021-08-25 19:56:01 +00:00
Jonathan Kew
18310539bf
Bug 1708768 - Preliminary cleanup of gfxPlatformFontList creation/initialization code; no functional change. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D114863
2021-05-18 11:10:42 +00:00
Iulian Moraru
b6ba6af634
Backed out 3 changesets (bug 1708768) for causing font related crashes (bug 1711332). a=backout DONTBUILD
...
Backed out changeset fa037550d6e8 (bug 1708768)
Backed out changeset 10b30c8d4b86 (bug 1708768)
Backed out changeset c03c7df7cd61 (bug 1708768)
2021-05-16 11:46:34 +03:00
Jonathan Kew
11b9b22a55
Bug 1708768 - Preliminary cleanup of gfxPlatformFontList creation/initialization code; no functional change. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D114863
2021-05-14 18:05:44 +00:00
Emilio Cobos Álvarez
e2df872ab8
Bug 1708285 - Pass default font settings from parent to child processes. r=jfkthame
...
Instead of relying on GTK to be initialized in the child process.
Differential Revision: https://phabricator.services.mozilla.com/D113784
2021-05-01 20:00:31 +00:00
Jonathan Kew
e579136e87
Bug 1707655 - Move the activation of supplemental fonts on macOS to a separate thread and try to get it started earlier. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D113552
2021-04-30 13:50:47 +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
Mihai Alexandru Michis
b162701621
Backed out changeset 0cad1ef724ee (bug 1371386) for causing failures in emoji-fallback-3.html
...
CLOSED TREE
2020-08-24 21:02:10 +03:00
Jonathan Kew
ba87878325
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-24 14:24:12 +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
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
Barret Rennie
06f829cc25
Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/thebes/ r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D36955
--HG--
extra : moz-landing-system : lando
2019-07-10 03:29:40 +00:00
Jean-Yves Avenard
11ac9e9cf8
Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel
...
* Remove redundant virtual keywords
* Mark all destructors of inheriting classes as virtual for clarity
* Mark all classes without virtual destructor as final (exposed errors)
* Make destructor virtual where it needed to be (some were missing)
* Replace empty ({}) code declaration in header with = default
* Remove virtual unused methods
I probably missed some, it quickly became a rabbit hole.
Differential Revision: https://phabricator.services.mozilla.com/D26060
--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:51 +00:00
Emilio Cobos Álvarez
323b5be77a
Bug 1526294 - Should not need a pres context to get a system font. r=jfkthame
...
The only caller wants CSS pixels, no need to go back and forth.
This is the last dependency on the pres context, I think, from the style system
font code.
Differential Revision: https://phabricator.services.mozilla.com/D19147
2019-02-15 01:35:13 +01:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jonathan Kew
6f42f167fb
Bug 1490402 - Use UTF-8 strings (in place of UTF-16) for font family/face names in the system font list, to reduce memory footprint. r=lsalzman
2018-09-12 20:34:57 +01:00
Ryan Hunt
5516d12e7b
Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical
...
MozReview-Commit-ID: 1JewsArgmZz
--HG--
extra : rebase_source : 85e8e1101ca852baee9e1448267e59b19c9d84e1
2018-04-30 15:05:19 -05:00
Jonathan Kew
c66fb1e660
Bug 1451296 - Make enabling of font-variation-settings and font-optical-sizing properties dependent on adequate platform support at runtime. r=lsalzman
2018-04-05 18:53:56 +01:00
sotaro
0cc1972d14
Bug 1432039 - Improve assumption of content process's back-end prefs r=jrmuizel
2018-03-15 14:48:54 +09:00
Ryan Hunt
fff3bf05d6
Create a PaintWorker thread pool and dispatch tiles to it (bug 1425056, r=bas)
...
This commit adds a paint worker thread pool to PaintThread, and dispatches
tiled paints to it. The thread pool is only created if tiling is enabled,
and its size is set by 'layers.omtp.paint-workers' and defaults to 1. If
-1 is specified, it will be sized to 'max((cpu_cores * 3) / 4, 1)'.
The one tricky part of dispatching tiled paints to a thread pool is the
AsyncEndLayerTransaction message that must execute once all paints are
finished. Previously, this runnable would be queued after all the paints
had been queued, ensuring it would be run after they had all completed.
With a thread pool, there is no guarantee. Instead this commit, uses
a flag on CompositorBridgeChild to signify whether all of the paints
have been queued ('mOutstandingAsyncEndLayerTransaction'), and after
every tiled paint it is examined to see if that paint was the last
paint, and if it is to run AsyncEndLayerTransaction. In addition,
if the async paints complete before we even mark the end of the
layer transaction, we queue it like normal.
The profiler markers are also complicated by using a thread pool.
I don't know of a great way to keep them working as they are per
thread, so for now I've removed them. I may have been the only
one using them anyway.
MozReview-Commit-ID: 5LIJ9GWSfCn
--HG--
extra : rebase_source : 0c26806f337a1b4b1511945f9c72e787b426c5ba
2017-12-08 01:18:05 -06:00
Andrew Osmond
675137dd9f
Bug 1419767
- Remove gfxPlatform::CanRenderContentToDataSurface. r=nical
...
Factory::DoesBackendSupportDataDrawtarget already fulfills the same
purpose and we should use that instead, as imgFrame is the only user of
the former API. It has the added bonus of allowing us to use shared
surfaces on Linux with WebRender, and using volatile surfaces on Windows
when D2D is disabled.
2017-11-24 08:10:03 -05:00
Jonathan Kew
a889197da2
Bug 1412090 - patch 2 - Rework the fontconfig-based platform font list implementation to pass the list of available font patterns from chrome to content, instead of letting the content process get it directly from fontconfig. r=lsalzman
2017-11-02 20:29:33 +00:00
Jonathan Kew
c28cae074c
Bug 1412090 - patch 1 - Wrap the font family record used to pass font info from chrome to content on macOS in a union, in preparation for using the same mechanism with a different type of font record on Linux. (No functional change here, just the added union type and some renamings from 'font family list' to 'font list' to be more generic.) r=lsalzman
2017-11-02 17:23:16 +00:00
Jonathan Kew
7036cc5f85
Backed out changesets 75e7f32c3365, eec946b59360, 72a6f5f3512c, ea8ee40ed426 (bug 1412090) for apparently breaking all system-installed fonts on some Linux systems. r=backout
2017-11-10 16:05:33 +00:00
Jonathan Kew
0ba9f9c57b
Bug 1412090 - patch 2 - Rework the fontconfig-based platform font list implementation to pass the list of available font patterns from chrome to content, instead of letting the content process get it directly from fontconfig. r=lsalzman
2017-11-02 20:29:33 +00:00
Jonathan Kew
90bf3da506
Bug 1412090 - patch 1 - Wrap the font family record used to pass font info from chrome to content on macOS in a union, in preparation for using the same mechanism with a different type of font record on Linux. (No functional change here, just the added union type and some renamings from 'font family list' to 'font list' to be more generic.) r=lsalzman
2017-11-02 17:23:16 +00:00
Lee Salzman
a21ad6d19e
Bug 1385029 - require implementation of gfxFont::GetScaledFont and remove unnecessary gfxPlatform::GetScaledFontForFont. r=jfkthame
...
MozReview-Commit-ID: GP1Aekecb0s
2017-08-07 16:20:44 -04:00
Cameron McCormack
c770a5a921
Bug 1376964 - Part 7: Remove unused nsIURI argument from gfxPlatform::IsFontFormatSupported. r=jfkthame
...
MozReview-Commit-ID: LJ6nnZEGz7D
--HG--
extra : rebase_source : 9f47d839aa4572ed2fc2d15a4986c8bc30d3f2ca
2017-07-08 14:17:23 +08:00
Carsten "Tomcat" Book
a269ba0e44
Backed out changeset aafb719b4379 (bug 1376964)
2017-07-12 12:41:29 +02:00
Cameron McCormack
ab22ddb3c6
Bug 1376964 - Part 7: Remove unused nsIURI argument from gfxPlatform::IsFontFormatSupported. r=jfkthame
...
MozReview-Commit-ID: LJ6nnZEGz7D
--HG--
extra : rebase_source : a12c270beb85467955c044c9c068d22de5db8f45
2017-07-12 16:36:15 +08:00