The WebFont will be cached the same way we cache and reference the NativeImage. When recording DrawGlyphs, we will ensure the Font is cached by GPUP and we will use its RemoteResourceIdentifier in the DL item. When replaying back the DL in GPUP, we are going to pass the FontHashMap to DisplayList::Replayer so its replay() method can resolve the RemoteResourceIdentifier back to a Font.
Created attachment 415710 [details] WIP
Created attachment 415712 [details] WIP
<rdar://problem/72370811>
Caching Web fonts in the GPU Process should be fixed by bug 219672. *** This bug has been marked as a duplicate of bug 219672 ***