summaryrefslogtreecommitdiffstats
path: root/gallerycommon
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-08-30 10:38:59 +0800
committerOwen Lin <owenlin@google.com>2011-09-05 11:28:18 +0800
commit7fb09a025b25d0dce0f95ec083b53b7a04f8954a (patch)
treea7f7954987ecf1e6e171d62cd63220af70ffad77 /gallerycommon
parentc53a616f18c70d4f0d3c7fb186833754e00eb817 (diff)
downloadandroid_packages_apps_Snap-7fb09a025b25d0dce0f95ec083b53b7a04f8954a.tar.gz
android_packages_apps_Snap-7fb09a025b25d0dce0f95ec083b53b7a04f8954a.tar.bz2
android_packages_apps_Snap-7fb09a025b25d0dce0f95ec083b53b7a04f8954a.zip
Improve the performance of Reviewing a photo.
fix: 5144370 There is two componenet in the photo page. One is the large photo and the other is the thumbnail strip. They idenpendently load their own data and images. This change fixes several issues here: 1. Prevent sending to many jobs to ThreadPool and block others. In a worse case, if the thumbnail strip send image requests first, it may block the ThreadPool very long. 2. Improve the performance of extracting thumbnails from local files. Now we try to extract the thumbnails from EXIF data first. Change-Id: I45100d4daa025efb479f47c4f105de2b4731b498
Diffstat (limited to 'gallerycommon')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java b/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
index 29f86e056..ea98c6c19 100644
--- a/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
+++ b/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
@@ -298,8 +298,5 @@ public class BitmapUtils {
ByteArrayOutputStream baos = new ByteArrayOutputStream(65536);
bitmap.compress(CompressFormat.JPEG, quality, baos);
return baos.toByteArray();
-
}
-
-
}