fix mixup of TRACE_SUBSET/SERIALIZE

This commit is contained in:
Michiharu Ariza 2019-05-02 11:25:10 -07:00
parent c52294eb28
commit 157a414bd9
2 changed files with 4 additions and 4 deletions

View File

@ -1781,7 +1781,7 @@ struct VarData
const hb_bimap_t &inner_map,
const hb_bimap_t &region_map)
{
TRACE_SUBSET (this);
TRACE_SERIALIZE (this);
if (unlikely (!c->extend_min (*this))) return_trace (false);
itemCount = inner_map.get_count ();
@ -1929,7 +1929,7 @@ struct VariationStore
const VariationStore *src,
const hb_array_t <hb_bimap_t> &inner_remaps)
{
TRACE_SUBSET (this);
TRACE_SERIALIZE (this);
unsigned int set_count = 0;
for (unsigned int i = 0; i < inner_remaps.length; i++)
if (inner_remaps[i].get_count () > 0) set_count++;

View File

@ -328,7 +328,7 @@ struct HVARVVAR
bool serialize_index_maps (hb_serialize_context_t *c,
const hb_array_t<index_map_subset_plan_t> &im_plans)
{
TRACE_SUBSET (this);
TRACE_SERIALIZE (this);
if (im_plans[index_map_subset_plan_t::ADV_INDEX].is_identity ())
advMap = 0;
else if (unlikely (!advMap.serialize (c, this).serialize (c, im_plans[index_map_subset_plan_t::ADV_INDEX])))
@ -426,7 +426,7 @@ struct VVAR : HVARVVAR {
bool serialize_index_maps (hb_serialize_context_t *c,
const hb_array_t<index_map_subset_plan_t> &im_plans)
{
TRACE_SUBSET (this);
TRACE_SERIALIZE (this);
if (unlikely (!HVARVVAR::serialize_index_maps (c, im_plans)))
return_trace (false);
if (!im_plans[index_map_subset_plan_t::VORG_INDEX].get_map_count ())