summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Utilities.java
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-01-19 17:56:52 -0800
committerJason Sams <rjsams@android.com>2010-01-19 17:56:52 -0800
commit6ec11bc3a80341206be9506619deb7f9171d38c9 (patch)
tree2e83292bcaedd43cb370fe10e7e650e7d8174fbd /src/com/android/launcher2/Utilities.java
parentb4ecab24dbff6e6dc9e7929655a55199fc32e8dd (diff)
downloadandroid_packages_apps_Trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.tar.gz
android_packages_apps_Trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.tar.bz2
android_packages_apps_Trebuchet-6ec11bc3a80341206be9506619deb7f9171d38c9.zip
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.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java
index 507096cff..94e281b41 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,