Gamma correction for distance field text.
authorjvanverth <jvanverth@google.com>
Mon, 9 Jun 2014 19:04:55 +0000 (12:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Jun 2014 19:04:55 +0000 (12:04 -0700)
commit4d517fdbb145cb95e5e935470df331e1b6667cfc
tree277a6a4f0296f9a0c49eb6e4f3397bc1ff0d70c1
parent8405ef9854858b2527bf03b7e7abb1c0da59411d
Gamma correction for distance field text.

Handles both non-LCD and LCD text. Uses a texture to look up the gamma correction values for a given text color or luminance.

BUG=skia:
R=reed@google.com, bungeman@google.com, robertphillips@google.com, bsalomon@google.com

Author: jvanverth@google.com

Review URL: https://codereview.chromium.org/258883002
include/core/SkPaint.h
src/core/SkGlyphCache.h
src/core/SkMaskGamma.h
src/core/SkPaint.cpp
src/core/SkScalerContext.h
src/gpu/GrDistanceFieldTextContext.cpp
src/gpu/GrDistanceFieldTextContext.h
src/gpu/effects/GrDistanceFieldTextureEffect.cpp
src/gpu/effects/GrDistanceFieldTextureEffect.h