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

Issue 149853002: Improved distance field sampling (Closed)

Created:
6 years, 10 months ago by jvanverth1
Modified:
6 years, 10 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Improved distance field sampling There are two different fixes here. First, it computes the distance value properly within the shader. Second, it handles anti-aliasing properly by doing a correction based on the gradient of the texture coordinates. Committed: http://code.google.com/p/skia/source/detail?r=13461

Patch Set 1 #

Patch Set 2 : First pass at non-uniform correction #

Patch Set 3 : Final shader and clean up. #

Patch Set 4 : More clean up #

Patch Set 5 : More clean up #

Total comments: 8

Patch Set 6 : Replace vertex attribute with uniform; add some consts. #

Patch Set 7 : Enable standard derivatives. #

Total comments: 1

Patch Set 8 : Address nits #

Patch Set 9 : Remove unnecessary offset attribute. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -25 lines) Patch
M src/gpu/GrAtlas.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrAtlas.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -4 lines 0 comments Download
M src/gpu/GrTextStrike.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 7 3 chunks +55 lines, -17 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jvanverth1
6 years, 10 months ago (2014-02-05 16:21:55 UTC) #1
bsalomon
I'm curious if you've timed the new code vs the old code for the uniform ...
6 years, 10 months ago (2014-02-05 20:19:09 UTC) #2
jvanverth1
On 2014/02/05 20:19:09, bsalomon wrote: > I'm curious if you've timed the new code vs ...
6 years, 10 months ago (2014-02-07 15:04:20 UTC) #3
bsalomon
On 2014/02/07 15:04:20, JimVV wrote: > On 2014/02/05 20:19:09, bsalomon wrote: > Here some timing ...
6 years, 10 months ago (2014-02-07 15:13:15 UTC) #4
jvanverth1
On 2014/02/07 15:13:15, bsalomon wrote: > On 2014/02/07 15:04:20, JimVV wrote: > > On 2014/02/05 ...
6 years, 10 months ago (2014-02-07 15:16:10 UTC) #5
bsalomon
On 2014/02/07 15:16:10, JimVV wrote: > On 2014/02/07 15:13:15, bsalomon wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 15:17:14 UTC) #6
jvanverth1
On 2014/02/07 15:17:14, bsalomon wrote: > On 2014/02/07 15:16:10, JimVV wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 16:17:34 UTC) #7
bsalomon
On 2014/02/07 16:17:34, JimVV wrote: > On 2014/02/07 15:17:14, bsalomon wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 16:19:56 UTC) #8
jvanverth1
https://codereview.chromium.org/149853002/diff/150001/src/gpu/GrAtlas.h File src/gpu/GrAtlas.h (right): https://codereview.chromium.org/149853002/diff/150001/src/gpu/GrAtlas.h#newcode102 src/gpu/GrAtlas.h:102: SkISize getSize(); On 2014/02/05 20:19:10, bsalomon wrote: > const? ...
6 years, 10 months ago (2014-02-10 18:34:01 UTC) #9
bsalomon
lgtm w/ comment about uniform https://codereview.chromium.org/149853002/diff/310001/src/gpu/effects/GrDistanceFieldTextureEffect.cpp File src/gpu/effects/GrDistanceFieldTextureEffect.cpp (right): https://codereview.chromium.org/149853002/diff/310001/src/gpu/effects/GrDistanceFieldTextureEffect.cpp#newcode80 src/gpu/effects/GrDistanceFieldTextureEffect.cpp:80: if (fTextureSizeUni.isValid()) { I ...
6 years, 10 months ago (2014-02-10 21:51:26 UTC) #10
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 10 months ago (2014-02-14 21:35:57 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/149853002/460001
6 years, 10 months ago (2014-02-14 21:36:01 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 21:48:32 UTC) #13
Message was sent while issue was closed.
Change committed as 13461

Powered by Google App Engine
This is Rietveld 408576698