Closed
Bug 1403302
Opened 7 years ago
Closed 7 years ago
Eliminate dependency on cairo fonts for getting glyph metrics
Categories
(Core :: Graphics: Text, enhancement, P3)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [gfx-noted])
Attachments
(3 files)
739 bytes,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
2.80 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
12.64 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
We currently rely on cairo font APIs to get glyph extents, even when we aren't actually rendering via cairo any more. This seems inefficient (as it requires us to set up cairo fonts just for this purpose), and will make the implementation of Variation Fonts harder than it should be (because we'll need to plumb variations through the cairo font code in addition to moz2d/skia/webrender/whatever). We should just get rid of this dependency and figure out how to get glyph metrics/extents via the same font backend as we're using to render.
Updated•7 years ago
|
Updated•7 years ago
|
Blocks: win32k-lockdown
status-firefox57:
unaffected → ---
status-firefox58:
affected → ---
OS: Unspecified → All
Hardware: Unspecified → All
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8930246 -
Flags: review?(bas)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8930247 -
Flags: review?(bas)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8930248 -
Flags: review?(jmuizelaar)
Updated•7 years ago
|
Attachment #8930246 -
Flags: review?(bas) → review+
Updated•7 years ago
|
Attachment #8930247 -
Flags: review?(bas) → review+
Comment 4•7 years ago
|
||
Comment on attachment 8930248 [details] [diff] [review] patch 3 - Remove direct cairo dependency from gfxTextRun and gfxGlyphExtents Review of attachment 8930248 [details] [diff] [review]: ----------------------------------------------------------------- Stealing review as Jeff is on PTO.
Attachment #8930248 -
Flags: review?(jmuizelaar) → review+
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/cdc8898f59b3 patch 1 - Add missing return statement to ScaledFontBase::GetGlyphDesignMetrics, so that its cairo-based code path actually works. r=bas https://hg.mozilla.org/integration/mozilla-inbound/rev/ade4ee8e1bfc patch 2 - Fix mixed-up glyph bounding box coordinates in ScaledFontDWrite::GetGlyphDesignMetrics. r=bas https://hg.mozilla.org/integration/mozilla-inbound/rev/d4f80c4ba719 patch 3 - Remove direct cairo dependency from gfxTextRun and gfxGlyphExtents. r=bas
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cdc8898f59b3 https://hg.mozilla.org/mozilla-central/rev/ade4ee8e1bfc https://hg.mozilla.org/mozilla-central/rev/d4f80c4ba719
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Comment 7•7 years ago
|
||
Looks like this brought some AWSY improvements: == Change summary for alert #10719 (as of Thu, 23 Nov 2017 17:40:52 GMT) == Improvements: 4% Heap Unclassified summary windows7-32 opt 42,427,149.35 -> 40,924,380.53 3% Heap Unclassified summary windows10-64 pgo 49,933,293.77 -> 48,426,975.48 3% Heap Unclassified summary windows10-64 opt 49,945,868.79 -> 48,541,249.41 3% Heap Unclassified summary windows7-32 pgo 42,149,408.59 -> 41,023,741.65 For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=10719
You need to log in
before you can comment on or make changes to this bug.
Description
•