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

Issue 1029423003: Calculate inverse scale for distance fields in vertex shader (Closed)

Created:
5 years, 9 months ago by jvanverth1
Modified:
5 years, 8 months ago
Reviewers:
joshualitt, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Calculate inverse scale for distance field text in vertex shader This is for the uniform scale case only. Using the dFdx() function on certain Mali GPUs causes issues because the precision is too low, so we have to compute 1/scale from the view matrix instead. BUG=skia:3528 Committed: https://skia.googlesource.com/skia/+/5b143038cb47763974d2750ed78d436eb6c38bea Committed: https://skia.googlesource.com/skia/+/bb4a1cf0e66c98c723f04f473a3221b2a4d8ece1

Patch Set 1 #

Patch Set 2 : Fix gradients and textalign issues #

Total comments: 4

Patch Set 3 : Use SkToBool() #

Patch Set 4 : Only apply if we're scaling up #

Patch Set 5 : Fix keys #

Patch Set 6 : Swap sense of key bit #

Patch Set 7 : Fix shader for Tegra3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -63 lines) Patch
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 7 chunks +32 lines, -7 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 1 4 chunks +19 lines, -15 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 13 chunks +86 lines, -41 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
jvanverth1
5 years, 8 months ago (2015-04-03 20:03:06 UTC) #2
bsalomon
Does this have any affect on batching? Otherwise, lgtm https://codereview.chromium.org/1029423003/diff/20001/src/gpu/effects/GrDistanceFieldTextureEffect.cpp File src/gpu/effects/GrDistanceFieldTextureEffect.cpp (right): https://codereview.chromium.org/1029423003/diff/20001/src/gpu/effects/GrDistanceFieldTextureEffect.cpp#newcode77 src/gpu/effects/GrDistanceFieldTextureEffect.cpp:77: ...
5 years, 8 months ago (2015-04-03 21:16:30 UTC) #3
jvanverth1
On 2015/04/03 21:16:30, bsalomon wrote: > Does this have any affect on batching? Otherwise, lgtm ...
5 years, 8 months ago (2015-04-06 14:14:47 UTC) #4
bsalomon
On 2015/04/06 14:14:47, jvanverth1 wrote: > On 2015/04/03 21:16:30, bsalomon wrote: > > Does this ...
5 years, 8 months ago (2015-04-06 16:10:39 UTC) #5
jvanverth1
On 2015/04/06 16:10:39, bsalomon wrote: > On 2015/04/06 14:14:47, jvanverth1 wrote: > > On 2015/04/03 ...
5 years, 8 months ago (2015-04-06 16:45:20 UTC) #6
joshualitt
On 2015/04/06 16:45:20, jvanverth1 wrote: > On 2015/04/06 16:10:39, bsalomon wrote: > > On 2015/04/06 ...
5 years, 8 months ago (2015-04-06 18:31:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1029423003/100001
5 years, 8 months ago (2015-04-06 18:32:47 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/5b143038cb47763974d2750ed78d436eb6c38bea
5 years, 8 months ago (2015-04-06 18:39:03 UTC) #11
jvanverth1
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1066613003/ by jvanverth@google.com. ...
5 years, 8 months ago (2015-04-06 20:58:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1029423003/120001
5 years, 8 months ago (2015-04-07 15:50:06 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 16:06:03 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/bb4a1cf0e66c98c723f04f473a3221b2a4d8ece1

Powered by Google App Engine
This is Rietveld 408576698