OSDN Git Service

Add a new method for text gamma correction
authorRomain Guy <romainguy@google.com>
Wed, 18 Jul 2012 22:50:29 +0000 (15:50 -0700)
committerRomain Guy <romainguy@google.com>
Wed, 18 Jul 2012 23:28:44 +0000 (16:28 -0700)
commit6e25e38e43f9e7f71397dfab7ed32c81c7bf7d46
tree0bca4ce1b09dee6f3bfeb941ca324b4ca91a1eff
parentaccf721ebdf4d3da53e8ae09572650775bfe10f8
Add a new method for text gamma correction

To select the gamma correction method, adb shell setprop hwui.text_gamma_correction
with one of the following values:

lookup3
lookup
shader3
shader

See Properties.h for more information about these different methods.
You can also control gamma correction using the following properties:

hwui.text_gamma
hwui.text_gamma.black_threshold
hwui.text_gamma.white_threshold

Change-Id: I47970b804d2c590c37d3da5008db094241579e25
libs/hwui/Debug.h
libs/hwui/GammaFontRenderer.cpp
libs/hwui/GammaFontRenderer.h
libs/hwui/Properties.h