Commit Graph
3 Commits
Author SHA1 Message Date
waozi 84ba2f3045 Add the Liberation Mono pixmap font, Plan 9 text measure oracle and pixmap blend tests 2026-10-10 19:10:13 -03:00
waozi 0977fdb503 Resolve widget styles against the installed rules without copying them
Every widget copied the whole 320-rule table at least twice per frame:
ActiveStyleRules() returned it by value, ResolveStyleRules took it by
value, and ApplyStyleRule copied the cascade and the rule for every rule.
On a phone that memcpy was the largest single cost of a frame.

ApplyStyleRules now reads a borrowed view of the rules in place, and
widgets resolve through ResolveInstalledStyleRules. The widget face
functions (Checkbox, Toggle, Radio, Slider, Image, Progress, Separator,
Plot) no longer take a rule table; tests install theirs first. The unused
single-rule ApplyStyleRule/ResolveStyleRule and the FromRules paint
helpers are gone.
2026-09-29 18:11:20 -03:00
waozi ab561def52 Move progress widget portable host test to Ziran 2026-09-27 10:55:20 -03:00