History log of /external/skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
54ef7c057ac9cc8ff9cb18eba864686dd59c2d93 25-Aug-2017 Jim Van Verth <jvanverth@google.com> Don't use uninitialized gamma data for adjusting SDF distance.

If the gamma is linear, the corresponding LUT for adjusting colors
is not initialized. This change takes that into account when computing
distance adjustments for SDF text.

Change-Id: I7ca1410bb27cf29ef08ccd666297bf5c3cd3dcdd
Reviewed-on: https://skia-review.googlesource.com/38940
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
/external/skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp
b461d3457567cf79a3efac3123c00f7afc37fecb 13-Apr-2016 brianosman <brianosman@google.com> Rename lots of things from 'sRGB' to 'GammaCorrect', where appropriate

Trying to be much more explicit about where we really mean sRGB as a format,
and where we mean gamma-correct, as in: "not legacy behavior". Most of the
changes to rendering behavior are dependent on the latter, so let's be precise.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1884873006

Review URL: https://codereview.chromium.org/1884873006
/external/skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp
0586f5cc9713268238394411a5daa2c7758b092b 12-Apr-2016 brianosman <brianosman@google.com> sRGB support for distance field text.

Add a second distance field adjust table that only applies contrast,
not fake-gamma correction. Store a flag in the batch at creation time,
using the same logic we apply elsewhere (render target format, plus
paint flags).

That gets us close, but not as good as bitmap text. The final step is
to use a linear step function (rather than smoothstep) to map distance
to coverage, when we have sRGB output. Smoothstep's nonlinear response
is actually doing some fake-gamma, so it ends up over-correcting when
the output is already gamma-correct.

Results are now very close between L32 (old table, smoothstep) and S32
(contrast-only table, linstep).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885613002

Review URL: https://codereview.chromium.org/1885613002
/external/skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp
e804292e805917002cc3d7baa7f967fb20d2c7cb 11-Dec-2015 joshualitt <joshualitt@chromium.org> Move all text stuff to its own folder

BUG=skia:

Review URL: https://codereview.chromium.org/1521453002
/external/skia/src/gpu/text/GrDistanceFieldAdjustTable.cpp