Behdad Esfahbod
fc5739ea90
[test-map] Whitespace
2 years ago
Behdad Esfahbod
3e64abd5d6
Merge pull request #3613 from harfbuzz/threads-test
...
Threads test
2 years ago
Behdad Esfahbod
efa4385b16
Merge pull request #3615 from harfbuzz/gir-freetype
...
[gi] Add freetype2-2.0 for g-i-r includes
2 years ago
Behdad Esfahbod
b010962c3b
[test/hb-shape-threads] Silence hb_language_get_default() threadysafety issue
2 years ago
Behdad Esfahbod
f4a8b70016
More member initialization
2 years ago
Behdad Esfahbod
4e59900ff5
[test/hb-shape-threads] Share font amongst threads
2 years ago
Behdad Esfahbod
18b0bd0f5f
[test/hb-shape-threads] Verify buffer
2 years ago
Behdad Esfahbod
484cc18732
[test-shape-threads] Set language
2 years ago
Behdad Esfahbod
f371789b40
Sprinkle static around
2 years ago
Behdad Esfahbod
4386626ee0
[test/threads] Fix dependency
2 years ago
Behdad Esfahbod
bf4b11cfa4
[configure] Another try at fixing distcheck
2 years ago
Behdad Esfahbod
e0544c481d
[test/threads] Fix distcheck
2 years ago
Behdad Esfahbod
e3d5a117a3
[hb-shape-threads] Fix tsan race
2 years ago
Behdad Esfahbod
33c990f0a9
Include cassert to fix bots
2 years ago
Behdad Esfahbod
049af18684
[threads] Add suite to test
2 years ago
Behdad Esfahbod
87453f63fa
[hb-shape-threads] Fix current-work-dir so test passes
2 years ago
Behdad Esfahbod
f77faf8654
[hb-shape-threads] Allow overriding test parameters from cmdline
2 years ago
Behdad Esfahbod
f0fba59969
[hb-shape-threads] Reduce num-iterations
2 years ago
Behdad Esfahbod
e8a2436332
[threads] Add a condition_variable to test for all threads to be ready
2 years ago
Behdad Esfahbod
4d42a94c19
[threads] Add hb-shape-threads test
2 years ago
Behdad Esfahbod
315ef83b4e
Revert "Revert "[ot-lang] Use atomic int for cache""
...
This reverts commit c56ce8681c
.
The revert was not intentional. Ouch!
2 years ago
Khaled Hosny
3427511988
[gi] Add freetype2-2.0 for g-i-r includes
...
Fixes the warnings:
../src/hb-ft.cc:810: Warning: HarfBuzz: hb_ft_face_create: argument ft_face: Unresolved type: 'FT_Face'
../src/hb-ft.cc:886: Warning: HarfBuzz: hb_ft_face_create_cached: argument ft_face: Unresolved type: 'FT_Face'
../src/hb-ft.cc:855: Warning: HarfBuzz: hb_ft_face_create_referenced: argument ft_face: Unresolved type: 'FT_Face'
../src/hb-ft.cc:920: Warning: HarfBuzz: hb_ft_font_create: argument ft_face: Unresolved type: 'FT_Face'
../src/hb-ft.cc:1029: Warning: HarfBuzz: hb_ft_font_create_referenced: argument ft_face: Unresolved type: 'FT_Face'
../src/hb-ft.cc:240: Warning: HarfBuzz: hb_ft_font_get_face: return value: Unresolved type: 'FT_Face'
../src/hb-ft.cc:262: Warning: HarfBuzz: hb_ft_font_lock_face: return value: Unresolved type: 'FT_Face'
2 years ago
Behdad Esfahbod
97aa1ce6ba
[gsubgpos] Move some member initialization
3 years ago
Behdad Esfahbod
0bb4c1f021
[cache] Set default values for cache template parameters
3 years ago
Behdad Esfahbod
3957d2927d
[layout] Remove stale comment
3 years ago
Behdad Esfahbod
b6fed6f711
[set-digest] Minor don't use !! when auto bool conversion happens
3 years ago
Behdad Esfahbod
371e14d99c
Combine uses of map has() then get() with has(.., &..)
3 years ago
Behdad Esfahbod
b99efa6c8d
[map] Minor: use const reference in has()
3 years ago
Behdad Esfahbod
24d5a11dcb
[bimap] Add unlikely and minor optimization in is_empty()
3 years ago
Behdad Esfahbod
c56ce8681c
Revert "[ot-lang] Use atomic int for cache"
...
This reverts commit d61b207491
.
3 years ago
Behdad Esfahbod
63bc6be0cf
Merge pull request #3603 from harfbuzz/font-serial
...
Add font serial API
3 years ago
Behdad Esfahbod
e2aa29907d
[set] Use relaxed atomic ops for last_page_index
...
Since iterating a set from multiple threads is supported.
3 years ago
Behdad Esfahbod
d61b207491
[ot-lang] Use atomic int for cache
...
Fixes(?) https://github.com/harfbuzz/harfbuzz/issues/3612
3 years ago
Behdad Esfahbod
67bd147c73
Merge pull request #3610 from googlefonts/subset_create_tables_face
...
[subset] fix subsetting of faces created via hb_face_create_for_tables.
3 years ago
Behdad Esfahbod
a719e67887
[ot-font] Use atomic ops for cache serial number
...
This guarantees the cache is coherent.
3 years ago
Behdad Esfahbod
5248b2567b
[ot-font/h-advance] Adjust varStore cache condition
...
This gives best performance for short strings, now that we have a h-advance cache as well.
The en-words benchmark in particular, now ot-font is faster than ft.
Second to last line is of interest:
Before:
-----------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------------------------------------------------
BM_Shape/en-words.txt/Roboto-Regular.ttf/hb 29.8 ms 29.8 ms 23
BM_Shape/en-words.txt/Roboto-Regular.ttf/ft 30.4 ms 30.4 ms 23
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/hb 16.3 ms 16.3 ms 43
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/ft 16.5 ms 16.5 ms 42
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/var/hb 18.0 ms 18.0 ms 39
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/var/ft 17.8 ms 17.8 ms 39
After:
behdad@Behdads-MacBook-Pro harfbuzz % ninja -Cbuild && build/perf/benchmark-shape --benchmark_filter=en-words
-----------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------------------------------------------------
BM_Shape/en-words.txt/Roboto-Regular.ttf/hb 30.0 ms 30.0 ms 23
BM_Shape/en-words.txt/Roboto-Regular.ttf/ft 30.3 ms 30.3 ms 23
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/hb 16.3 ms 16.3 ms 43
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/ft 16.4 ms 16.4 ms 43
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/var/hb 17.6 ms 17.6 ms 40
BM_Shape/en-words.txt/SourceSerifVariable-Roman.ttf/var/ft 17.8 ms 17.8 ms 39
3 years ago
Behdad Esfahbod
12fff976b6
[ot-var] Use atomic int for cached-serial
3 years ago
Behdad Esfahbod
0919eaa6e8
[ot-font] Remove lock around cache
...
Not needed.
3 years ago
Behdad Esfahbod
3548b6025f
[ot-font] Cache h-advances for variable fonts
3 years ago
Behdad Esfahbod
39a07bf3eb
[ot-font] Rename cache to varStore_cache
3 years ago
Behdad Esfahbod
970e03ecae
[ot-font] Add a hb_ot_font_t struct
3 years ago
Behdad Esfahbod
80c49933c6
[hb-ft] Adjust serial signature
3 years ago
Behdad Esfahbod
56e0ff9ea1
[ft] If hb_font changed, update FT_Face
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2270
Rather untested.
3 years ago
Behdad Esfahbod
d0de389de8
[font] Fix test
3 years ago
Behdad Esfahbod
a2015cd300
[font] Add a separate serial_coords
3 years ago
Behdad Esfahbod
8629df188a
[ft] Discard advance cache if font changed
...
Uses newly added font serial API.
Part of https://github.com/harfbuzz/harfbuzz/issues/2270
But doesn't set new coords on the FT_Face. That's a lot more
work :(.
3 years ago
Behdad Esfahbod
48db1c9583
[font] Add serial API
...
New API:
+ hb_font_get_serial()
+ hb_font_changed()
Fixes https://github.com/harfbuzz/harfbuzz/issues/2426
Unused internally as of now.
3 years ago
Behdad Esfahbod
0fe1869228
[benchmark-set] Pause timing around set copy initialization
3 years ago
Behdad Esfahbod
ce5435a862
[benchmark-set] Remove use of rand() inside benchmark
3 years ago
Behdad Esfahbod
efa2a5796e
[map] Add hb_map_copy()
...
New API:
+ hb_map_copy()
3 years ago