[layout-cache] Adjust cost-function for recent change

This commit is contained in:
Behdad Esfahbod 2022-06-07 14:41:39 -06:00
parent bfee6839b0
commit 21346af01d
1 changed files with 1 additions and 1 deletions

View File

@ -3296,7 +3296,7 @@ struct ChainContextFormat2
unsigned cache_cost () const
{
unsigned c = (this+inputClassDef).cost () * ruleSet.len;
unsigned c = (this+lookaheadClassDef).cost () * ruleSet.len;
return c >= 4 ? c : 0;
}
bool cache_func (hb_ot_apply_context_t *c, bool enter) const