diff options
author | Mike Reed <reed@google.com> | 2009-08-25 13:20:19 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2009-08-25 13:47:47 -0400 |
commit | dbade9d6a075b1d5b8ebe10ee8961a5de296c93b (patch) | |
tree | ba87f0dbb1f4ca2521a7282a65faa6ed0963eb9e /graphics | |
parent | 523018f1828884e96b1265f3e347410280577945 (diff) | |
download | frameworks_base-dbade9d6a075b1d5b8ebe10ee8961a5de296c93b.zip frameworks_base-dbade9d6a075b1d5b8ebe10ee8961a5de296c93b.tar.gz frameworks_base-dbade9d6a075b1d5b8ebe10ee8961a5de296c93b.tar.bz2 |
expose runtime changes to gamma
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Typeface.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Typeface.java b/graphics/java/android/graphics/Typeface.java index e40e84a..9bcab72 100644 --- a/graphics/java/android/graphics/Typeface.java +++ b/graphics/java/android/graphics/Typeface.java @@ -172,4 +172,14 @@ public class Typeface { private static native int nativeGetStyle(int native_instance); private static native int nativeCreateFromAsset(AssetManager mgr, String path); private static native int nativeCreateFromFile(String path); + + /** + * Set the global gamma coefficients for black and white text. This call is + * usually a no-op in shipping products, and only exists for testing during + * development. + * + * @param blackGamma gamma coefficient for black text + * @param whiteGamma gamma coefficient for white text + */ + public static native void setGammaForText(float blackGamma, float whiteGamma); } |