[VarStore] Rename internal get_scalars() to get_region_scalars()
This commit is contained in:
parent
d7541f7b55
commit
ff1fe25a5d
|
@ -136,7 +136,7 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<blend_arg_t, CFF2Subrs>
|
||||||
if (unlikely (!scalars.resize (region_count)))
|
if (unlikely (!scalars.resize (region_count)))
|
||||||
set_error ();
|
set_error ();
|
||||||
else
|
else
|
||||||
varStore->varStore.get_scalars (get_ivs (), coords, num_coords,
|
varStore->varStore.get_region_scalars (get_ivs (), coords, num_coords,
|
||||||
&scalars[0], region_count);
|
&scalars[0], region_count);
|
||||||
}
|
}
|
||||||
seen_blend = true;
|
seen_blend = true;
|
||||||
|
|
|
@ -2597,7 +2597,7 @@ struct VarData
|
||||||
return delta;
|
return delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
void get_scalars (const int *coords, unsigned int coord_count,
|
void get_region_scalars (const int *coords, unsigned int coord_count,
|
||||||
const VarRegionList ®ions,
|
const VarRegionList ®ions,
|
||||||
float *scalars /*OUT */,
|
float *scalars /*OUT */,
|
||||||
unsigned int num_scalars) const
|
unsigned int num_scalars) const
|
||||||
|
@ -2852,10 +2852,10 @@ struct VariationStore
|
||||||
&& varstore_prime->dataSets);
|
&& varstore_prime->dataSets);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int get_region_index_count (unsigned int ivs) const
|
unsigned int get_region_index_count (unsigned int major) const
|
||||||
{ return (this+dataSets[ivs]).get_region_index_count (); }
|
{ return (this+dataSets[major]).get_region_index_count (); }
|
||||||
|
|
||||||
void get_scalars (unsigned int ivs,
|
void get_region_scalars (unsigned int major,
|
||||||
const int *coords, unsigned int coord_count,
|
const int *coords, unsigned int coord_count,
|
||||||
float *scalars /*OUT*/,
|
float *scalars /*OUT*/,
|
||||||
unsigned int num_scalars) const
|
unsigned int num_scalars) const
|
||||||
|
@ -2866,7 +2866,8 @@ struct VariationStore
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(this+dataSets[ivs]).get_scalars (coords, coord_count, this+regions,
|
(this+dataSets[major]).get_region_scalars (coords, coord_count,
|
||||||
|
this+regions,
|
||||||
&scalars[0], num_scalars);
|
&scalars[0], num_scalars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue