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

Issue 1155293005: Perform SVG text chunk processing on-the-fly (Closed)

Created:
5 years, 7 months ago by fs
Modified:
5 years, 6 months ago
Reviewers:
pdr., f(malita)
CC:
blink-reviews, krit, pdr+renderingwatchlist_chromium.org, zoltan1, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, blink-reviews-rendering, jchaffraix+rendering, gyuyoung2, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Perform SVG text chunk processing on-the-fly Instead of building a vector of chunks, and then process that vector, process the chunks as they are formed. The chunks themselves are independent units, so this is reasonably straight-forward. The main change is that instead of creating and adding an SVGTextChunk to a vector, the data used to create the chunk is passed to a handler method. Because of how <textPath> is handled, this handler currently needs to be a virtual method. Because of that, a SVGTextChunkBuilder is subclassed to SVGTextPathChunkBuilder for the text-on-path processing. Using the PerfTestRunner.measurePageLoadTime harness with separate-x.svg from the bug give the following results locally: Before: After: avg 100.5 ms -> 89.5 ms median 100.5 ms -> 88.7 ms stdev 2.1 ms -> 3.2 ms BUG=486669 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196040

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -50 lines) Patch
M Source/core/layout/svg/SVGTextChunkBuilder.h View 2 chunks +19 lines, -9 lines 2 comments Download
M Source/core/layout/svg/SVGTextChunkBuilder.cpp View 5 chunks +30 lines, -18 lines 1 comment Download
M Source/core/layout/svg/SVGTextLayoutEngine.cpp View 3 chunks +6 lines, -23 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
fs
Bombardement!
5 years, 7 months ago (2015-05-27 14:39:41 UTC) #2
f(malita)
https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.cpp File Source/core/layout/svg/SVGTextChunkBuilder.cpp (right): https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.cpp#newcode73 Source/core/layout/svg/SVGTextChunkBuilder.cpp:73: static SVGTextChunk createTextChunk(const Vector<SVGInlineTextBox*>& lineLayoutBoxes, unsigned boxStart, unsigned boxCount) ...
5 years, 7 months ago (2015-05-27 15:19:13 UTC) #3
fs
https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.h File Source/core/layout/svg/SVGTextChunkBuilder.h (right): https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.h#newcode47 Source/core/layout/svg/SVGTextChunkBuilder.h:47: virtual void handleTextChunk(const Vector<SVGInlineTextBox*>&, unsigned boxStart, unsigned boxEnd); On ...
5 years, 7 months ago (2015-05-27 15:28:07 UTC) #4
f(malita)
On 2015/05/27 15:28:07, fs wrote: > https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.h > File Source/core/layout/svg/SVGTextChunkBuilder.h (right): > > https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.h#newcode47 > ...
5 years, 7 months ago (2015-05-27 15:29:12 UTC) #5
fs
On 2015/05/27 15:29:12, f(malita) wrote: > On 2015/05/27 15:28:07, fs wrote: > > > https://codereview.chromium.org/1155293005/diff/1/Source/core/layout/svg/SVGTextChunkBuilder.h ...
5 years, 7 months ago (2015-05-27 15:31:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155293005/1
5 years, 6 months ago (2015-05-28 07:44:20 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-05-28 07:48:12 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196040

Powered by Google App Engine
This is Rietveld 408576698