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

Issue 663423003: Allocate only the vertices we need for text. (Closed)

Created:
6 years, 2 months ago by jvanverth1
Modified:
6 years, 2 months ago
Reviewers:
*bsalomon, robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Allocate only the vertices we need for text. This restructures the vertex allocation for text rendering to compute the max number of vertices we would need for a line of text, and then only allocate that much. If this number exceeds the quad index limit, then it will allocate for the max number of quads, and reallocate for the rest later. Committed: https://skia.googlesource.com/skia/+/73f105345066b1f22f15ba6575cb3800dd9313b8

Patch Set 1 #

Patch Set 2 : Don't force distance fields #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -114 lines) Patch
M src/gpu/GrBitmapTextContext.h View 1 chunk +2 lines, -8 lines 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 13 chunks +55 lines, -52 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 12 chunks +46 lines, -49 lines 0 comments Download
M src/gpu/GrTextContext.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
jvanverth1
This appears to be slightly faster and less noisy. Compare before (on Mac OS): maxrss ...
6 years, 2 months ago (2014-10-21 20:11:38 UTC) #3
jvanverth1
Well, looking again, any perf changes (including the stddev) may be noise. Some are faster, ...
6 years, 2 months ago (2014-10-21 20:16:06 UTC) #4
mtklein
On 2014/10/21 20:16:06, jvanverth1 wrote: > Well, looking again, any perf changes (including the stddev) ...
6 years, 2 months ago (2014-10-21 20:26:49 UTC) #5
mtklein
On my Mac, --match text --config gpu, text_16_LCD_FF 2.76us -> 2.79us 1x GM_varied_text_ignorable_clip_lcd 310us -> ...
6 years, 2 months ago (2014-10-21 20:39:19 UTC) #6
bsalomon
Love the simplification. If it is faster that's great. https://codereview.chromium.org/663423003/diff/20001/src/gpu/GrBitmapTextContext.cpp File src/gpu/GrBitmapTextContext.cpp (left): https://codereview.chromium.org/663423003/diff/20001/src/gpu/GrBitmapTextContext.cpp#oldcode457 src/gpu/GrBitmapTextContext.cpp:457: ...
6 years, 2 months ago (2014-10-22 13:22:55 UTC) #7
jvanverth1
https://codereview.chromium.org/663423003/diff/20001/src/gpu/GrBitmapTextContext.cpp File src/gpu/GrBitmapTextContext.cpp (left): https://codereview.chromium.org/663423003/diff/20001/src/gpu/GrBitmapTextContext.cpp#oldcode457 src/gpu/GrBitmapTextContext.cpp:457: bool flush = fDrawTarget->geometryHints(&fMaxVertices, NULL); On 2014/10/22 13:22:55, bsalomon ...
6 years, 2 months ago (2014-10-23 17:33:44 UTC) #8
bsalomon
lgtm
6 years, 2 months ago (2014-10-23 18:44:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663423003/40001
6 years, 2 months ago (2014-10-23 18:48:57 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 18:57:16 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 73f105345066b1f22f15ba6575cb3800dd9313b8

Powered by Google App Engine
This is Rietveld 408576698