diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2016-06-22 23:14:26 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2016-06-22 23:14:26 -0400 |
commit | e22334812f83cd03fe988b5f903d66247e049b7d (patch) | |
tree | e53e4b38ce1fd5c4c43023f61c1f9b72e2739317 /src/smooth/ftsmerrs.h | |
parent | 78e8fc0dadac960b27d05e62b9a9a6a6b3b12166 (diff) | |
download | freetype2-e22334812f83cd03fe988b5f903d66247e049b7d.tar.gz |
[smooth] Consolidate boundary checks.
Removing the checks from `gray_hline' shaves 1% off rendering speed.
* src/smooth/ftgrays.c [STANDALONE_]: Duplicate `FT_MIN' and `FT_MAX'.
(gray_TWorker): No need to store `clip_box'.
(gray_hline): Remove unnecessary boundary checks.
(gray_convert_glyph): Move boundary checks from here.
(gray_raster_render): ... to here and consolidate.
Diffstat (limited to 'src/smooth/ftsmerrs.h')
0 files changed, 0 insertions, 0 deletions