Closed
Bug 1380014
Opened 7 years ago
Closed 7 years ago
Share fonts between BlobImage and WebRender
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox56 | --- | unaffected |
firefox57 | --- | unaffected |
firefox58 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
(Keywords: stale-bug, Whiteboard: [wr-mvp])
Attachments
(5 files, 4 obsolete files)
17.55 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
26.09 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
4.13 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
2.96 KB,
patch
|
lsalzman
:
review+
|
Details | Diff | Splinter Review |
7.68 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
We can use FontKeys to share Fonts across the process boundary and avoid duplicating the data with WebRender.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jmuizelaar
Assignee | ||
Comment 1•7 years ago
|
||
This doesn't retain the UnscaledFonts between paints which causes a bunch of overhead because the situation with FreeType is not thread safe. However it gets rid of the serialization.
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8886668 -
Attachment is obsolete: true
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8887618 -
Attachment is obsolete: true
Updated•7 years ago
|
Blocks: stage-wr-trains
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [wr-mvp]
Target Milestone: --- → mozilla57
Updated•7 years ago
|
status-firefox56:
--- → unaffected
status-firefox57:
--- → unaffected
Assignee | ||
Comment 5•7 years ago
|
||
We'll use this to share fonts with BlobImages
Attachment #8891054 -
Attachment is obsolete: true
Attachment #8922393 -
Flags: review?(lsalzman)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8922394 -
Flags: review?(lsalzman)
Assignee | ||
Comment 7•7 years ago
|
||
This changes the serialization format a little bit. We now have an index at the end of the blob. This is currently used to store a list of the used font keys. In the future we'll add rects and can use it for invalidation.
Attachment #8922396 -
Flags: review?(lsalzman)
Comment 8•7 years ago
|
||
Comment on attachment 8922393 [details] [diff] [review]
Expose GetFontKeyForUnscaledFont
You should make sure you bail out inside GetFontKeyForScaledFont if GetFontKeyForUnscaledFont returns a null FontKey, instead of proceeding to create a FontInstanceKey with the null FontKey.
Updated•7 years ago
|
Attachment #8922394 -
Flags: review?(lsalzman) → review+
Comment 9•7 years ago
|
||
Comment on attachment 8922396 [details] [diff] [review]
Share fonts with WebRender
In answer to the query in the patch, Linux always used FontType::FONTCONFIG. Only Android uses FontType::FREETYPE.
Attachment #8922396 -
Flags: review?(lsalzman) → review+
Assignee | ||
Comment 10•7 years ago
|
||
Attachment #8922393 -
Attachment is obsolete: true
Attachment #8922393 -
Flags: review?(lsalzman)
Attachment #8922435 -
Flags: review?(lsalzman)
Updated•7 years ago
|
Attachment #8922435 -
Flags: review?(lsalzman) → review+
Comment 11•7 years ago
|
||
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/630968b6201e
Expose GetFontKeyForUnscaledFont. r=lsalzman
https://hg.mozilla.org/integration/mozilla-inbound/rev/006a45a50d90
Add the ability to record UnscaledFonts by index. r=lsalzman
https://hg.mozilla.org/integration/mozilla-inbound/rev/2a824a8a2277
Share fonts with WebRender. r=lsalzman
Assignee | ||
Comment 12•7 years ago
|
||
Attachment #8923050 -
Flags: review?(lsalzman)
Updated•7 years ago
|
Attachment #8923050 -
Flags: review?(lsalzman) → review+
Comment 13•7 years ago
|
||
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/40868b71690c
Keep the unscaled font alive. r=lsalzman
Comment 14•7 years ago
|
||
bugherder |
Comment 15•7 years ago
|
||
These patches changed webrender_bindings but didn't regen the ffi header. Now my WR update try pushes are failing because the regen'd header doesn't compile.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5640a62bc5b1a7535f21691ba2afb83e6ff97d7a
The changes that show up in the regen'd file as a result of this: https://hg.mozilla.org/try/rev/4f965e0ad18da6125afd0886a5784e2b4970169e
Flags: needinfo?(jmuizelaar)
Assignee | ||
Comment 17•7 years ago
|
||
If you like this you can land it if you want it earlier than I get around to landing it. (I'm going to be out for most of day)
Attachment #8923095 -
Flags: review?(bugmail)
Updated•7 years ago
|
Attachment #8923095 -
Attachment is patch: true
Attachment #8923095 -
Flags: review?(bugmail) → review+
Comment 18•7 years ago
|
||
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f89b4a42ac3c
Fix up the webrender bindings. r=kats
Comment 19•7 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•