Remove array for visited_paint.
This commit is contained in:
parent
e59ffe5482
commit
de0eba20ed
|
@ -58,10 +58,10 @@ struct hb_colrv1_closure_context_t :
|
||||||
bool paint_visited (const void *paint)
|
bool paint_visited (const void *paint)
|
||||||
{
|
{
|
||||||
hb_codepoint_t delta = (hb_codepoint_t) ((uintptr_t) paint - (uintptr_t) base);
|
hb_codepoint_t delta = (hb_codepoint_t) ((uintptr_t) paint - (uintptr_t) base);
|
||||||
if (visited_paint->has (delta))
|
if (visited_paint.has (delta))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
visited_paint->add (delta);
|
visited_paint.add (delta);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ struct hb_colrv1_closure_context_t :
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const void *base;
|
const void *base;
|
||||||
hb_set_t visited_paint[1];
|
hb_set_t visited_paint;
|
||||||
hb_set_t *glyphs;
|
hb_set_t *glyphs;
|
||||||
hb_set_t *layer_indices;
|
hb_set_t *layer_indices;
|
||||||
hb_set_t *palette_indices;
|
hb_set_t *palette_indices;
|
||||||
|
@ -93,8 +93,6 @@ struct hb_colrv1_closure_context_t :
|
||||||
layer_indices (layer_indices_),
|
layer_indices (layer_indices_),
|
||||||
palette_indices (palette_indices_)
|
palette_indices (palette_indices_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
~hb_colrv1_closure_context_t () { hb_set_clear (visited_paint); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LayerRecord
|
struct LayerRecord
|
||||||
|
|
Loading…
Reference in New Issue