Change representation of collection of HarfBuzzRunGlyphData::offset
This patch introduces |ShapeResult::RunInfo::GlyphDataCollection| to represent a collection of |HarfBuzzRunGlyphData| with optional offsets to reduce memory usage, because of glyph offsets are often zero, particularly Latin runs. This is done by following observations: - Most of |HarfBuzzRunGlyphData::offset| are zero == allocates collection of offset when there are non-zero offsets. - Collection of |HarfBuzzRunGlyphData::offset| is accessed per run == checks zero or non-zero collection before accessing collection Bug: 965564 Change-Id: I345260a4e6d752bec9abbe21d32a2e31b07966f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627274 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Dominik Röttsches <drott@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#664751}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment