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

26 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu 47714ef65c Bug 1694161 - some fixes for the MacOS non unified environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D106616
2021-02-27 08:05:46 +00:00
smolnar bbe0284415 Backed out 2 changesets (bug 1694161) as requested by dev. DONTBUILD CLOSED TREE
Backed out changeset 0fb8a1114e84 (bug 1694161)
Backed out changeset 453ce7dffdcc (bug 1694161)
2021-02-26 18:52:04 +02:00
Andi-Bogdan Postelnicu a839ede25c Bug 1694161 - some fixes for the MacOS non unified environment. r=sg
Depends on D105977

Differential Revision: https://phabricator.services.mozilla.com/D106616
2021-02-26 16:39:18 +00:00
Jonathan Kew 0c3e079a73 Bug 1686559 - Add null-checks for API calls that may be fallible. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101744
2021-01-14 13:57:00 +00:00
Brad Werth 71e1c9396d Bug 1678427: Use a more precise label for native-font-resource-mac fonts. r=jfkthame
The listed fonts are individual faces, not font families. Since the face name
comes from a PostScript name, we'll use the label "psname".

Differential Revision: https://phabricator.services.mozilla.com/D97664
2020-11-19 20:27:09 +00:00
Brad Werth a68bdd9d7c Bug 1676255 Part 1: Make NativeFontResourceMacReporter::CollectReports match the user-fonts report. r=jrmuizel
We don't cache the url, but we do report the "family=" preface, and we respect
the anonymizer flag in the same way that user-fonts are reported.

Differential Revision: https://phabricator.services.mozilla.com/D96643
2020-11-10 22:31:34 +00:00
Brad Werth d95911267d Bug 1674868 Part 3: Make NativeFontResourceMacReporter report each native font by name. r=jrmuizel
If there is no font name stored, this reports "Unknown(#)" with the index of
the font in the map.

Depends on D96122

Differential Revision: https://phabricator.services.mozilla.com/D96123
2020-11-06 18:53:07 +00:00
Brad Werth f0623db64c Bug 1674868 Part 2: Make NativeFontResourceMac store native font names alongside raw font data. r=jrmuizel
This moves from unordered_set to unordered_map to accommodate storing the font
name alongside the font data.

Differential Revision: https://phabricator.services.mozilla.com/D96122
2020-11-06 18:52:58 +00:00
Brad Werth e052665280 Bug 1674868 Part 1: Prevent memory leaks in NativeFontResourceMac::Create when font creation fails. r=jrmuizel
Any CT "Create" method returns an owned object. This ensures that owned
objects are deallocated when the font fails to be crated. It also prevents
unused font data from being entered into the font data set (where it would
never be deallocated).

Differential Revision: https://phabricator.services.mozilla.com/D96121
2020-11-06 16:27:32 +00:00
Jeff Muizelaar 9678494ff8 Bug 1674175 - Add a memory reporter for memory allocated in NativeFontResourceMac::Create. r=mstange
It's very hard for us to encourage the system to free this memory so we
should make sure we report it.

Differential Revision: https://phabricator.services.mozilla.com/D95233
2020-10-30 00:29:55 +00:00
Jeff Muizelaar ab92c3225f Bug 1672088. Avoid creating CTFonts from CGFonts when using NativeFontResourceMac. r=lsalzman
This has the same motivation as bug 1672088.

Differential Revision: https://phabricator.services.mozilla.com/D94062
2020-10-20 15:48:26 +00:00
Lee Salzman c452d01a0d Bug 1639385 - add memory reporter for NativeFontResource data. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76259
2020-05-21 20:32:10 +00:00
Lee Salzman 2b03a82ba0 Bug 1584268 - only instantiate Cairo fonts when drawing to Cairo target. r=jfkthame
This removes a lot of old cruft in thebes to instantiate Cairo scaled fonts.
Instead, we only instantiate the Cairo scaled font inside Moz2D when we actually
need it for DrawTargetCairo. This thus gets rid of the duplicated code we had
inside both Moz2D and thebes to deal with Cairo scaled fonts.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 21:56:30 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01: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
Lee Salzman 864930c221 Bug 1479010 - don't populate a ScaledFont's cairo scaled font unless targeting cairo. r=jrmuizel 2018-08-03 00:56:06 -04:00
Lee Salzman 826eee8b2a Bug 1403198 - support WR font descriptors on Mac. r=jrmuizel
MozReview-Commit-ID: BqN51yY88oJ
2017-11-06 20:21:06 -05:00
Lee Salzman 28471864af Bug 1355931 - move font serialization from ScaledFont to UnscaledFont. r=jrmuizel
MozReview-Commit-ID: 3d1XMoe2BKj
2017-04-14 14:11:00 -04:00
Lee Salzman a168dcdbf3 Bug 1348980 - implement UnscaledFont API for Moz2D and thebes. r=jfkthame 2017-04-06 17:41:02 -04:00
Jonathan Kew 36f52391d9 Bug 1331683 - Don't attempt to use any Core Text and Core Graphics variation-font APIs on pre-Sierra systems. r=jrmuizel,lsalzman 2017-02-09 21:37:24 +00:00
Jonathan Kew b64c9129e3 Bug 1321031 pt 6 - Include variation settings in moz2d recording stream when using the native Mac font backend. r=bas,jrmuizel 2017-01-06 16:35:12 +00:00
Ryan VanderMeulen e897fba434 Backed out 6 changesets (bug 1321031) for bustage.
Backed out changeset e0be4f5390fb (bug 1321031)
Backed out changeset ba071046f8ab (bug 1321031)
Backed out changeset 7cb4242dc636 (bug 1321031)
Backed out changeset bc58e479eb58 (bug 1321031)
Backed out changeset c551913ae892 (bug 1321031)
Backed out changeset f4ae57d5358f (bug 1321031)

CLOSED TREE
2017-01-06 12:46:27 -05:00
Jonathan Kew 7199a26387 Bug 1321031 pt 6 - Include variation settings in moz2d recording stream when using the native Mac font backend. r=bas,jrmuizel 2017-01-06 16:35:12 +00:00
Lee Salzman 3cff1c818b Bug 1309205 - part 2 - provide NativeFontResourceFontconfig so that print_via_parent works on Linux. r=jfkthame
MozReview-Commit-ID: 94XcLKgwTPq
2017-01-04 14:01:12 -05:00
Lee Salzman 37e1e73a58 Bug 1328337 - fix implicit conversion of glyph size from float to uint32_t in NativeFontResource::CreateScaledFont. r=bobowen
MozReview-Commit-ID: 9JcrfRYJ3ca
2017-01-03 14:20:16 -05:00
Haik Aftandilian e4b0bb24b7 Bug 1228022 - part 1 - Support replay of Mac print stream, adds NativeFontResourceMac, ScaledFontMac::GetCairoFontFace; r=jfkthame
Adds the necessary plumbing to allow Mac font creation and
referencing during replay of a remote print stream.

MozReview-Commit-ID: 18jpeImPwCI

--HG--
extra : transplant_source : %AE%3A%13%7B%E2VzMM%0F%AD%BF%A0%EC%BD%40%5E%281n
2016-09-15 14:13:57 -07:00