diff options
author | Owen Lin <owenlin@google.com> | 2012-03-29 14:27:58 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2012-04-05 15:15:39 +0800 |
commit | d8fb81f601830385a2343d08ad5dd171e4c7bfe0 (patch) | |
tree | e075c193323154ef35abc0a452ae9b82c31ce01d /src/com/android/gallery3d/data/ImageCacheRequest.java | |
parent | 5e96a9f26b2a8745235a706df5352ae7fb872a93 (diff) | |
download | android_packages_apps_Gallery2-d8fb81f601830385a2343d08ad5dd171e4c7bfe0.tar.gz android_packages_apps_Gallery2-d8fb81f601830385a2343d08ad5dd171e4c7bfe0.tar.bz2 android_packages_apps_Gallery2-d8fb81f601830385a2343d08ad5dd171e4c7bfe0.zip |
Upload textures in background.
Change-Id: I365f7be9aaab793366884249cbb10e8b6f0ab0e6
Diffstat (limited to 'src/com/android/gallery3d/data/ImageCacheRequest.java')
-rw-r--r-- | src/com/android/gallery3d/data/ImageCacheRequest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/data/ImageCacheRequest.java b/src/com/android/gallery3d/data/ImageCacheRequest.java index 64dfc9f45..d3d4f51e7 100644 --- a/src/com/android/gallery3d/data/ImageCacheRequest.java +++ b/src/com/android/gallery3d/data/ImageCacheRequest.java @@ -22,7 +22,6 @@ import android.graphics.BitmapFactory; import com.android.gallery3d.app.GalleryApp; import com.android.gallery3d.common.BitmapUtils; import com.android.gallery3d.data.ImageCacheService.ImageData; -import com.android.gallery3d.ui.BitmapPool; import com.android.gallery3d.util.ThreadPool.Job; import com.android.gallery3d.util.ThreadPool.JobContext; @@ -56,7 +55,7 @@ abstract class ImageCacheRequest implements Job<Bitmap> { options.inPreferredConfig = Bitmap.Config.ARGB_8888; Bitmap bitmap; if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { - bitmap = BitmapPool.decode(jc, BitmapPool.TYPE_MICRO_THUMB, + bitmap = MediaItem.getMicroThumbPool().decode(jc, data.mData, data.mOffset, data.mData.length - data.mOffset, options); } else { bitmap = DecodeUtils.decode(jc, |