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

Issue 219243012: Add LCD support for distance field text (Closed)

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

Description

Add LCD support for distance field text. LCD support is handled by shifting the uv coordinate by 1/3 of a pixel (transformed by the inverse CTM) to the left and right of the original texture coordinate, and using left, center, and right lookups to set the RGB values. This supports both RGB and BGR subpixel order. BUG=skia:2173 Committed: http://code.google.com/p/skia/source/detail?r=14049

Patch Set 1 #

Patch Set 2 : Create separate effect to handle LCD distance fields #

Patch Set 3 : Use correct uv for anti-aliasing; add BGR support. #

Patch Set 4 : Add comment #

Patch Set 5 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -14 lines) Patch
M src/gpu/GrDistanceFieldTextContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 4 3 chunks +17 lines, -6 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 1 2 4 chunks +47 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 chunks +210 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jvanverth1
There isn't much of a performance loss with this despite the three texture lookups, probably ...
6 years, 8 months ago (2014-04-03 15:26:59 UTC) #1
jvanverth1
I've also added an additional comment about the single anti-aliasing factor, since the length of ...
6 years, 8 months ago (2014-04-03 15:44:19 UTC) #2
robertphillips
lgtm
6 years, 8 months ago (2014-04-03 15:48:02 UTC) #3
bungeman-skia
Note that using lcd smoothing without gamma correction or a filter usually doesn't look very ...
6 years, 8 months ago (2014-04-03 15:54:13 UTC) #4
bungeman-skia
On 2014/04/03 15:54:13, bungeman1 wrote: > Note that using lcd smoothing without gamma correction or ...
6 years, 8 months ago (2014-04-03 16:07:18 UTC) #5
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 8 months ago (2014-04-03 16:49:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/219243012/60001
6 years, 8 months ago (2014-04-03 16:49:31 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 16:49:34 UTC) #8
commit-bot: I haz the power
Failed to apply patch for src/gpu/GrDistanceFieldTextContext.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-03 16:49:34 UTC) #9
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 8 months ago (2014-04-03 17:08:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/219243012/80001
6 years, 8 months ago (2014-04-03 17:08:11 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 18:26:03 UTC) #12
Message was sent while issue was closed.
Change committed as 14049

Powered by Google App Engine
This is Rietveld 408576698