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

Issue 85653004: Move distance field font code into SkGpuDevice (Closed)

Created:
7 years ago by jvanverth1
Modified:
6 years, 11 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Move distance field font code into GrDistanceFieldTextContext. This avoids the SkDraw path and renders the distance field glyphs directly from GrDistanceFieldTextContext. It also disables LCD, subpixel and autohinting, and removes the supporting code when rendering DF fonts. Committed: http://code.google.com/p/skia/source/detail?r=12770

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move text layout to GrDistanceFieldTextContext #

Patch Set 3 : Clean up formatting and address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -178 lines) Patch
M include/core/SkDevice.h View 2 chunks +9 lines, -7 lines 0 comments Download
M include/core/SkDraw.h View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M include/core/SkPaint.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/GrDistanceFieldTextContext.h View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 7 chunks +15 lines, -89 lines 0 comments Download
M src/core/SkDrawProcs.h View 1 chunk +0 lines, -16 lines 0 comments Download
M src/device/xps/SkXPSDevice.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 5 chunks +140 lines, -10 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 5 chunks +47 lines, -44 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jvanverth1
One note on this: the spacing between characters doesn't seem quite right after these changes. ...
7 years ago (2013-11-25 20:25:17 UTC) #1
robertphillips
https://codereview.chromium.org/85653004/diff/1/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/85653004/diff/1/src/core/SkDraw.cpp#newcode1446 src/core/SkDraw.cpp:1446: // we don't cache hairlines in the cache line ...
7 years ago (2013-11-25 20:39:43 UTC) #2
bsalomon
Any thoughts about how this aligns or doesn't with other device independent text rendering approaches? ...
7 years ago (2013-11-25 20:50:22 UTC) #3
jvanverth1
On 2013/11/25 20:50:22, bsalomon wrote: > Any thoughts about how this aligns or doesn't with ...
7 years ago (2013-11-25 21:01:11 UTC) #4
reed1
https://codereview.chromium.org/85653004/diff/1/include/core/SkDraw.h File include/core/SkDraw.h (right): https://codereview.chromium.org/85653004/diff/1/include/core/SkDraw.h#newcode110 include/core/SkDraw.h:110: bool shouldDrawTextAsPaths(const SkPaint&, const SkMatrix&) const; why did this ...
7 years ago (2013-11-25 21:24:33 UTC) #5
jvanverth1
On 2013/11/25 21:24:33, reed1 wrote: > https://codereview.chromium.org/85653004/diff/1/include/core/SkDraw.h > File include/core/SkDraw.h (right): > > https://codereview.chromium.org/85653004/diff/1/include/core/SkDraw.h#newcode110 > ...
7 years ago (2013-11-26 13:30:35 UTC) #6
reed1
On 2013/11/26 13:30:35, JimVV wrote: > On 2013/11/25 21:24:33, reed1 wrote: > > https://codereview.chromium.org/85653004/diff/1/include/core/SkDraw.h > ...
7 years ago (2013-11-26 15:28:52 UTC) #7
jvanverth1
On 2013/11/26 15:28:52, reed1 wrote: > On 2013/11/26 13:30:35, JimVV wrote: > > On 2013/11/25 ...
7 years ago (2013-11-26 16:05:09 UTC) #8
jvanverth1
So I've moved as much as I can at the moment into GrDistanceFieldTextContext. The only ...
7 years ago (2013-12-18 14:41:47 UTC) #9
bsalomon
lgtm On 2013/12/18 14:41:47, JimVV wrote: > So I've moved as much as I can ...
7 years ago (2013-12-18 20:44:11 UTC) #10
jvanverth1
On 2013/12/18 20:44:11, bsalomon wrote: > > The other thought I have is that after ...
7 years ago (2013-12-18 20:59:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/85653004/40001
7 years ago (2013-12-19 15:03:22 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-19 16:12:32 UTC) #13
Message was sent while issue was closed.
Change committed as 12770

Powered by Google App Engine
This is Rietveld 408576698