[glyf] Optimize shape loading
Do away with a copy for simple glyph load.
This commit is contained in:
parent
ea5131507a
commit
f0819301b7
|
@ -95,7 +95,8 @@ struct Glyph
|
|||
break;
|
||||
}
|
||||
case SIMPLE:
|
||||
if (unlikely (!SimpleGlyph (*header, bytes).get_contour_points (points, phantom_only)))
|
||||
/* Load into all_points if it's empty, as an optimization. */
|
||||
if (unlikely (!SimpleGlyph (*header, bytes).get_contour_points (all_points.length == 0 ? all_points : points, phantom_only)))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue