diff options
author | Jason Sams <rjsams@android.com> | 2010-01-19 17:56:52 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-01-19 17:56:52 -0800 |
commit | 6ec11bc3a80341206be9506619deb7f9171d38c9 (patch) | |
tree | 2e83292bcaedd43cb370fe10e7e650e7d8174fbd /src/com/android/launcher2/Utilities.java | |
parent | b4ecab24dbff6e6dc9e7929655a55199fc32e8dd (diff) | |
download | packages_apps_trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.zip packages_apps_trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.tar.gz packages_apps_trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.tar.bz2 |
Change text labels from RGBA to ALPHA8. Reduces memory usage and may increase performance.
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index 507096c..94e281b 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -415,7 +415,7 @@ final class Utilities { /** You own the bitmap after this and you must call recycle on it. */ Bitmap createTextBitmap(String text) { - Bitmap b = Bitmap.createBitmap(mBitmapWidth, mBitmapHeight, Bitmap.Config.ARGB_8888); + Bitmap b = Bitmap.createBitmap(mBitmapWidth, mBitmapHeight, Bitmap.Config.ALPHA_8); Canvas c = new Canvas(b); StaticLayout layout = new StaticLayout(text, mTextPaint, (int)mTextWidth, |