[vim/vim] GTK4: Refactor hardware accelerated rendering backend (PR #20674)

3 views
Skip to first unread message

Foxe Chen

unread,
2:47 AM (12 hours ago) 2:47 AM
to vim/vim, Subscribed

Currently the glyphs are stored with each span of text (DrawNode). However when drawing text and it overlaps with an existing span of text, the existing span of text needs to be split. Knowing where to split in the glyph array is complicated and bug prone.

Refactor so that each cell contains an array of glyphs that represent that cell. Then when rendering the text, batch glyphs into a glyph string which is then used as a single text render node. The resulting code is much simpler, because now the DrawNode data structure only represents visual attributes, which means they can be easily split and clipped.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20674

Commit Summary

  • 503cb40 refactor gtk4 hardware accelerated rendering backend

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20674@github.com>

Reply all
Reply to author
Forward
0 new messages