Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Issue 2686503003: Add support for shaping a substring to HarfBuzzShaper (Closed)

Created:
3 years, 10 months ago by eae
Modified:
3 years, 10 months ago
Reviewers:
drott
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for shaping a substring to HarfBuzzShaper Add support to HarfBuzzShaper for shaping a portion of the supplied text content as identified by a start and end offset. This allows an instance of the shaper to be used to shape multiple portions, or segments, of the string with different fonts, styles and font feature settings as needed. This change also renames a couple of methods and fields to increase code readability and to avoid confusion. Significant renames described below: shapeResult() -> shape() harfBuzzBuffer -> buffer normalizedBuffer -> text normalizedBufferLength -> textLength Eventually this will also allow for context aware shaping by passing the surrounding text as context to harfbuzz when invoking shaping algorithm. TEST=Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp BUG=689155 R=drott@chromium.org Review-Url: https://codereview.chromium.org/2686503003 Cr-Commit-Position: refs/heads/master@{#449158} Committed: https://chromium.googlesource.com/chromium/src/+/8fd9860a37236d0d424b33e344f71df12625a653

Patch Set 1 #

Patch Set 2 : Fix windows compiler error #

Total comments: 3

Patch Set 3 : Don't restrict run segmentation #

Patch Set 4 : Cleanup comments and adjust tolerance #

Total comments: 4

Patch Set 5 : Clarify API and tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -178 lines) Patch
M third_party/WebKit/Source/platform/fonts/shaping/CachingWordShapeIterator.cpp View 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h View 1 2 3 4 1 chunk +42 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 3 4 12 chunks +166 lines, -136 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaperTest.cpp View 1 2 3 4 8 chunks +74 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 38 (28 generated)
eae
3 years, 10 months ago (2017-02-07 20:10:08 UTC) #1
drott
The rename looks good to me. And generally the split into shape and shapeSegment is ...
3 years, 10 months ago (2017-02-07 23:12:41 UTC) #11
eae
Thanks for the detailed feedback Dominik! Restricting the range for run segmentation seemed like the ...
3 years, 10 months ago (2017-02-08 00:53:48 UTC) #12
drott
Hi Emil, after initially thinking about the RunSegmenter stability, I believe we actually have a ...
3 years, 10 months ago (2017-02-08 15:52:59 UTC) #21
eae
On 2017/02/08 15:52:59, drott wrote: > Hi Emil, after initially thinking about the RunSegmenter stability, ...
3 years, 10 months ago (2017-02-08 16:39:27 UTC) #22
eae
PTAL
3 years, 10 months ago (2017-02-08 17:31:40 UTC) #25
drott
LGTM, thanks. Did doing the whole range run segmentation fix the problems you were previously ...
3 years, 10 months ago (2017-02-08 23:31:26 UTC) #32
eae
On 2017/02/08 23:31:26, drott wrote: > LGTM, thanks. > > Did doing the whole range ...
3 years, 10 months ago (2017-02-08 23:54:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686503003/120001
3 years, 10 months ago (2017-02-09 00:21:57 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 00:31:06 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/8fd9860a37236d0d424b33e344f7...

Powered by Google App Engine
This is Rietveld 408576698