commit | c1cfec4f6014e085ca04b39befdbf67a1c80b6d3 | [log] [tgz] |
---|---|---|
author | Emil A Eklund <eae@chromium.org> | Sun Feb 17 13:33:04 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Feb 17 13:33:04 2019 |
tree | 04aa53aa3ad35ac7ec2dfc13f01dccf2b1df0258 | |
parent | 92f07957eaa84ae463fab871b4a2bbda0da79e1b [diff] |
[LayoutNG] Implement ShapeResult::CopyRanges Add new CopyRanges method to ShapeResult for batch processing sequential ranges without the need to iterate over runs to determine start boundary for each range. This replaces the OpaqueContext parameter in CopyRange which implemented a similar optimization, with a worse API, and limited to certain left to right runs. Updates the LayoutNG shaping logic to use the new API during item construction and paragraph level shaping for both LTR and RTL text. Test: renderer/platform/fonts/shaping/shape_result_test.cc Bug: 923962 Change-Id: I34912fb8821106da733c605585c33de01d28f3d7 Reviewed-on: https://chromium-review.googlesource.com/c/1474837 Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Emil A Eklund <eae@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#632975}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .