Avoid double CTFont creation by passing through data descriptor
The out-of-process font loader, now that it has moved to using CTFontManagerCreateFontDescriptorFromData, does not need to create a full CTFontRef anymore, but can instead wrap the out-of-process font data into a CTFontDescriptorRef built from data. Doing that avoids creating an extra CTFont copy in font_platform_data_mac, as we can merge the data descriptor with the cascade list attributes, and only then create the CTFontRef from it. Bug: 1033478 Change-Id: I025c265caf472578fd77a11acbc4b23a1d8fffb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013289 Commit-Queue: Dominik Röttsches <drott@chromium.org> Auto-Submit: Dominik Röttsches <drott@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Nico Weber <thakis@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#735353}
Showing
Please register or sign in to comment