Bug 299869

Summary: [Skia] Build a SkTextBlob when recording DrawGlyphs display list item
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: PlatformAssignee: Carlos Garcia Campos <cgarcia>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, ian.grunert, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos Garcia Campos
Reported 2025-09-30 02:24:59 PDT
GlyphDisplayListCache uses a display list to cache the shaping results of a text run that is frequently painted, but we are still building a SkTextBlob for the same shaping results every time the display list is replayed, which is expensive. We can build the SkTextBlob once when recording and save that in DrawGlyphs item instead of the list of glyphs and advances.
Attachments
Carlos Garcia Campos
Comment 1 2025-09-30 02:27:50 PDT
EWS
Comment 2 2025-10-01 03:03:16 PDT
Committed 300818@main (7e98db0c73bf): <https://commits.webkit.org/300818@main> Reviewed commits have been landed. Closing PR #51557 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-10-01 03:05:32 PDT
Ian Grunert
Comment 4 2025-10-08 15:58:18 PDT
This change is causing a crash on Windows: https://bugs.webkit.org/show_bug.cgi?id=300412 Any ideas would be appreciated, it's a pretty unusual one.
Note You need to log in before you can comment on or make changes to this bug.