Revert "[gsubgpos] Reduce hb_set_t allocations"
This reverts commit 0b7f6d6cf0
.
Not much benefit as the main allocations come from other places.
This commit is contained in:
parent
3947cedd09
commit
167b7c6046
|
@ -145,12 +145,6 @@ struct hb_closure_context_t :
|
||||||
|
|
||||||
hb_set_t& push_cur_active_glyphs ()
|
hb_set_t& push_cur_active_glyphs ()
|
||||||
{
|
{
|
||||||
if (set_pool)
|
|
||||||
{
|
|
||||||
auto &s = *active_glyphs_stack.push (set_pool.pop ());
|
|
||||||
s.clear ();
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
return *active_glyphs_stack.push ();
|
return *active_glyphs_stack.push ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +153,7 @@ struct hb_closure_context_t :
|
||||||
if (!active_glyphs_stack)
|
if (!active_glyphs_stack)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
set_pool.push (active_glyphs_stack.pop ());
|
active_glyphs_stack.pop ();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,7 +161,6 @@ struct hb_closure_context_t :
|
||||||
hb_set_t *glyphs;
|
hb_set_t *glyphs;
|
||||||
hb_set_t output[1];
|
hb_set_t output[1];
|
||||||
hb_vector_t<hb_set_t> active_glyphs_stack;
|
hb_vector_t<hb_set_t> active_glyphs_stack;
|
||||||
hb_vector_t<hb_set_t> set_pool;
|
|
||||||
recurse_func_t recurse_func = nullptr;
|
recurse_func_t recurse_func = nullptr;
|
||||||
unsigned int nesting_level_left;
|
unsigned int nesting_level_left;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue