mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
1 parent
0f58c68c6e
commit
8f5abdc42f
2 files changed
+8
-8
No files matched your search
@@ -320,13 +320,13 @@ struct tuple_delta_t
|
||||
void copy_from (const tuple_delta_t& o, hb_alloc_pool_t *pool = nullptr)
|
||||
{
|
||||
axis_tuples = o.axis_tuples;
|
||||
indices.allocate_from_pool (pool, o.indices);
|
||||
deltas_x.allocate_from_pool (pool, o.deltas_x);
|
||||
deltas_y.allocate_from_pool (pool, o.deltas_y);
|
||||
compiled_tuple_header.allocate_from_pool (pool, o.compiled_tuple_header);
|
||||
compiled_deltas.allocate_from_pool (pool, o.compiled_deltas);
|
||||
compiled_peak_coords.allocate_from_pool (pool, o.compiled_peak_coords);
|
||||
compiled_interm_coords.allocate_from_pool (pool, o.compiled_interm_coords);
|
||||
indices.duplicate_vector_from_pool (pool, o.indices);
|
||||
deltas_x.duplicate_vector_from_pool (pool, o.deltas_x);
|
||||
deltas_y.duplicate_vector_from_pool (pool, o.deltas_y);
|
||||
compiled_tuple_header.duplicate_vector_from_pool (pool, o.compiled_tuple_header);
|
||||
compiled_deltas.duplicate_vector_from_pool (pool, o.compiled_deltas);
|
||||
compiled_peak_coords.duplicate_vector_from_pool (pool, o.compiled_peak_coords);
|
||||
compiled_interm_coords.duplicate_vector_from_pool (pool, o.compiled_interm_coords);
|
||||
}
|
||||
|
||||
void remove_axis (hb_tag_t axis_tag)
|
||||
|
||||
+1
-1
@@ -570,7 +570,7 @@ struct hb_vector_t
|
||||
|
||||
template <typename allocator_t>
|
||||
HB_ALWAYS_INLINE_VECTOR_ALLOCS
|
||||
bool allocate_from_pool (allocator_t *allocator, const hb_vector_t &other)
|
||||
bool duplicate_vector_from_pool (allocator_t *allocator, const hb_vector_t &other)
|
||||
{
|
||||
if (unlikely (!allocate_from_pool (allocator, other.length, false)))
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user