Behdad Esfahbod
df040de9b4
[array] Add a std::forward
3 years ago
Behdad Esfahbod
c606978ee0
[array] Remove unused type pack
3 years ago
Garret Rieger
37d61afd5e
[subset] add destructor to subset plan.
...
This ensures that it's members get destructed before the plan itself is destructed, as hb_object_destroy calls the destructor for plan.
3 years ago
Garret Rieger
a91bfeeda5
[repacker] comment cleanup.
3 years ago
Garret Rieger
015ca5bc3c
[repacker] fix compiler alignment warning.
3 years ago
Behdad Esfahbod
de37b2650d
[object] Only destruct object if it's not trivially-destructible
...
Such that we're legally free to access the object to destruct its
(pointer) fields ourselves afterwards. For things like hb_font_t,
hb_face_t, etc.
3 years ago
Garret Rieger
683c5dd21e
[repacker] further reduce base count.
3 years ago
Garret Rieger
5ddf41fc9c
[repacker] speed up MarkBasePos test case by using a smaller basecount.
3 years ago
Garret Rieger
bf28b84ae8
[repacker] cleanup unused base_array_id.
3 years ago
Garret Rieger
31976bfb50
[repacker] cleanup unused base_array_links.
3 years ago
Garret Rieger
6f5c52b604
[repacker] optimize AnchorMatrix::clone.
...
Previous runtime is O(n^2) reduced to O(n).
3 years ago
Garret Rieger
29e3b2467e
[repacker] optimzie remove_real_links as it's a hot method.
3 years ago
Garret Rieger
46b5dbd7ce
[repacker] optimize index_for_offset.
3 years ago
Garret Rieger
52303638b9
[repacker] correct size calculation for MarkBasePosFormat1.
3 years ago
Garret Rieger
ac1a853abc
[repacker] implement sanitize methods for MarkBasePos.
3 years ago
Garret Rieger
a3ed9f9099
[repacker] fix graph comparison, and mark base pos generation for the tests.
3 years ago
Garret Rieger
19c51ed35c
[repacker] Get mark base pos test working.
3 years ago
Garret Rieger
b46ced9562
[repacker] correct MarkArray size calculation.
3 years ago
Garret Rieger
36c76c27c6
[repacker] when clearing links in MarkArray, also clear parents of the children.
3 years ago
Garret Rieger
8c3db8bdfd
[repacker] more progress on MarkBasePos tests.
3 years ago
Behdad Esfahbod
172cc82032
[BUILD] Minor reword (and reformat)
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3784
3 years ago
Garret Rieger
1405f96b6f
[repacker] change run_resolve_overflow_test to check for graph equivalence.
...
Replaces a check for an exact match on the final serialized bytes. The previous check enforced equivalent topological sorting between result and expected, but we only really care that the graph's are equivalent and don't overflow.
3 years ago
Garret Rieger
07fd0528c0
[repacker] add graph equality check.
...
Does not compare topological sorting, but looks for equivalence of the two graphs.
3 years ago
Garret Rieger
5cf2a25a60
[repacker] Expose on internal method in the repacker that allows the caller to pass in/out a graph.
...
Will be used in testing so we can compare graphs instead of packed result.
3 years ago
Garret Rieger
c414ef292b
[repacker] Implement MarkArray::shrink.
3 years ago
Behdad Esfahbod
4ab7e579cb
Make HB_BORING_EXPANSION opt-in instead of opt-out
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3757
3 years ago
Garret Rieger
f8b5520556
[repacker] Add AnchorMatrix::shrink.
3 years ago
Garret Rieger
bbe14417ad
[repacker] Begin implementing MarkBasePosFormat1::shrink.
3 years ago
Garret Rieger
c9ddf0815a
[repacker] Implement AnchorMatrix::clone.
3 years ago
Garret Rieger
5ea3c0be8f
[repacker] Implement MarkArray::clone.
3 years ago
Garret Rieger
0083fd109c
[repacker] add as_table() helper to graph.
3 years ago
Garret Rieger
b00eb77682
[repack] Add add_link helper to graph.
3 years ago
Garret Rieger
1acd2a8bf9
[repacker] implement MarkBasePosFormat1::clone_range.
3 years ago
Garret Rieger
cf817f3d99
[repacker] Hook up MarkBasePos splitting.
3 years ago
Garret Rieger
4418beac93
[repacker] start implmenting MarkBasePos splitting.
3 years ago
Behdad Esfahbod
f4f7d691af
Merge pull request #3779 from harfbuzz/split_pair_pos_2
...
[repacker] Add PairPosFormat2 table splitting in the repacker.
3 years ago
Garret Rieger
fa46dbca9d
[repacker] Make actuate_subtable_split internal.
3 years ago
Garret Rieger
fe15f2559f
[repacker] use position instead of memory address as key in device_tables map.
3 years ago
Garret Rieger
163fbf0be1
[repacker] Check for nullptr's before sanitizing.
3 years ago
Garret Rieger
13253233f7
[repacker] in PairPosFormat2 splitting use the max estimated coverage/classdef size for sizing serialization buffers.
3 years ago
Garret Rieger
dde0a2b071
[repacker] track estimated coverage size during PairPosFormat1 split point analysis.
3 years ago
Garret Rieger
b37e8bef0e
[repacker] count size of the current class at the split point in the next segment.
3 years ago
Qunxin Liu
7fde6ab025
fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49790
3 years ago
Behdad Esfahbod
a4e0fd1685
[MultipleSubst] Rewrite serialize signature as single iterator
3 years ago
Behdad Esfahbod
65d28bc5a7
[MultipleSubst] Rewrite serialize() in terms of iterators
...
Unused still, and hence untested
3 years ago
Behdad Esfahbod
b57ea3b053
Revert "[iter] Use && in uses of is_source_of"
...
This reverts commit ccbba667a9
.
3 years ago
Garret Rieger
0e48a65d32
[repacker] estimate size of classDef1 and coverage during PairPos2 split point analysis.
3 years ago
Garret Rieger
2264df6da3
[repacker] add utility that can calculate the size of Coverage+ClassDef via incremental class inclusion.
3 years ago
Behdad Esfahbod
ccbba667a9
[iter] Use && in uses of is_source_of
3 years ago
Behdad Esfahbod
8fb7cc1c63
[iter] Use && in is_sink_of uses
3 years ago