summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-03-05 13:24:31 -0800
committerJason Sams <rjsams@android.com>2010-03-05 15:19:00 -0800
commitd1e2e1d6f418da40ad3ecf9cc382fed093d2008b (patch)
treec4696bb6308d67f503be9010231fee666b1e5fa1 /src
parent7fc8227051c576569738b8d5f27d7c6b54c5054e (diff)
downloadandroid_packages_apps_Trebuchet-d1e2e1d6f418da40ad3ecf9cc382fed093d2008b.tar.gz
android_packages_apps_Trebuchet-d1e2e1d6f418da40ad3ecf9cc382fed093d2008b.tar.bz2
android_packages_apps_Trebuchet-d1e2e1d6f418da40ad3ecf9cc382fed093d2008b.zip
Move mipmap level generation from allocation creation to upload time. This prevents RS from storing the >0 mipmap levels.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AllApps3D.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java
index 0b236628c..f571effea 100644
--- a/src/com/android/launcher2/AllApps3D.java
+++ b/src/com/android/launcher2/AllApps3D.java
@@ -1188,9 +1188,9 @@ public class AllApps3D extends RSSurfaceView
private void createAppIconAllocations(int index, ApplicationInfo item) {
mIcons[index] = Allocation.createFromBitmap(mRS, item.iconBitmap,
- Element.RGBA_8888(mRS), true);
+ Element.RGBA_8888(mRS), false);
mLabels[index] = Allocation.createFromBitmap(mRS, item.titleBitmap,
- Element.A_8(mRS), true);
+ Element.A_8(mRS), false);
mIconIds[index] = mIcons[index].getID();
mLabelIds[index] = mLabels[index].getID();
}
@@ -1202,8 +1202,8 @@ public class AllApps3D extends RSSurfaceView
+ " mIconsIds[index]=" + mIconIds[index]
+ " item=" + item);
}
- mIcons[index].uploadToTexture(0);
- mLabels[index].uploadToTexture(0);
+ mIcons[index].uploadToTexture(true, 0);
+ mLabels[index].uploadToTexture(true, 0);
}
/**