Commit Graph
14439 Commits
Author SHA1 Message Date
Behdad Esfahbod b4667287a5 [hvgl] Micro-optimize 2025-03-03 01:10:09 -07:00
Behdad Esfahbod 01453ba1a0 [hvgl] Use a context object 2025-03-03 01:07:03 -07:00
Behdad Esfahbod c577cd6c98 [hvgl] Simplify accounting 2025-03-03 00:32:30 -07:00
Behdad Esfahbod d5ffbd612d Merge branch 'main' into HVF 2025-03-02 18:40:38 -07:00
Behdad Esfahbod 3199d1c1f5 [VARC] Use a context object to pass arguments around 2025-03-02 18:35:46 -07:00
Behdad Esfahbod 11d6700d82 [hvgl] Add glyph_extents 2025-03-02 17:20:07 -07:00
Behdad Esfahbod 27500fea45 [hvgl] Fix compiler warning 2025-03-02 17:03:51 -07:00
Behdad Esfahbod dd6d763fba [hvgl] Reduce stack use by one int
lol
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 637398c241 [hvgl] Use a cached scratch pad to avoid mallocs completely
Yay. 10% speedup too.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod f4debfb34f [hvgl] Use a scratch pad
Towards malloc-free drawing.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 689ecdb156 [hvgl] Simplify eigen math 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 103eda6343 [hvgl] Remove use of complex numbers 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 64ae0d5527 [hvgl] Name a value 2025-03-02 17:03:51 -07:00
Behdad Esfahbod b97a044b8f [hvgl] Fix build after rebase 2025-03-02 17:03:51 -07:00
Behdad Esfahbod cd269e206a [hvgl] Micro-optimize vector resize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 3bb4ee78c1 [hvgl] Cosmetic 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 39483e8e74 [hvgl] Micro-optimize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 551edd7d08 [hvgl/transforms] Micro-optimize more 2025-03-02 17:03:51 -07:00
Behdad Esfahbod c9f69bcf07 [hvgl] Replace complex exp() with a sincos() 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 225426304f [hvgl/transforms] Micro-optimize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod a2e6fea26f [hvgl/transforms] Micro-optimize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 3955b52340 [hvgl/transforms] Comment 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 6e8f20bb65 [hvgl/transforms] Break up some more 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 4ede146739 [hvgl/transforms] Break up the four-iterator loop again 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 186e9c8f44 [hvgl] Reduce a complex multiplication 2025-03-02 17:03:51 -07:00
Behdad Esfahbod b13c81276b [paint] Simplify transforms
Transform nodes are rarely no-op anyway. Don't optimize them away.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 47017bbb77 [geometry] Numerical stability
So the tests pass.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 4d52539275 [geometry] Add scale_around_center & skew_around_center 2025-03-02 17:03:51 -07:00
Behdad Esfahbod a5b083b758 [paint] Use transforms from hb-geometry 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 120bc2c664 [paint] Add rotate_around_center 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 75cc0d356b [geometry] Add rotate_around_center 2025-03-02 17:03:51 -07:00
Behdad Esfahbod e1b92c0914 [paint] Use hb_sincos() 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 4e99803fb4 [hvgl] Optimize rotate-around-center 2025-03-02 17:03:51 -07:00
Behdad Esfahbod a91719db65 [hvgl] Move a method around 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 63dc03999e [geometry] Micro-optimize translate 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 531a7205b2 [hvgl] Micro-optimize complex i 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 67e119d51d [hvgl] Micro-optimize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 494b13a8ae [hvgl] Let compiler see both code paths ifdef __FMA__ 2025-03-02 17:03:51 -07:00
Behdad Esfahbod ec66c16ad8 [hvgl] Micro-optimize 2025-03-02 17:03:51 -07:00
Behdad Esfahbod a0bb93e324 [hvgl] Optimize is_translate_only 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 83a36fd835 [hvgl] Optimize rotation 2025-03-02 17:03:51 -07:00
Behdad Esfahbod fede68bd5e [HVF] Remove stale comment 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 07a15ec794 [hvgl] Micro-optimize transformations 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 6010b089a1 [HVF] Add AVX2 codepath 2025-03-02 17:03:51 -07:00
Behdad Esfahbod 907af345dc [coretext] Set all variation axes always
Otherwise, PingFangUI with its weird non-compliant avar table,
gets misrendered at default location.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 2f19b9d051 [avar] Add alternative, disabled, code path for mapping 0 2025-03-02 17:03:51 -07:00
Behdad Esfahbod c993fde80c [hvgl] Fix node count accounting 2025-03-02 17:03:51 -07:00
Behdad Esfahbod ba9a61597f [hvgl] Fix MINI build
HVF disabling to be configured better. But fix build for now.
2025-03-02 17:03:51 -07:00
Behdad Esfahbod 758ee5cff9 [COLR] Regain speed if all (normalized) coords are 0 2025-03-02 17:03:51 -07:00
Behdad Esfahbod da1fba8863 [cff] Regain speed re skipping applying variations 2025-03-02 17:03:51 -07:00