OSDN Git Service

Set the thumbnail/screennail sizes based on screensize
authorBobby Georgescu <georgescu@google.com>
Thu, 4 Oct 2012 21:04:13 +0000 (14:04 -0700)
committerThe Android Automerger <android-build@android.com>
Sat, 6 Oct 2012 00:43:43 +0000 (17:43 -0700)
commit6b84da41bc9f2192709a3be8d508a6b26604e70d
tree806365c8689d9952c6f914e09907842902e2ee72
parentd46427777fc4689f7253c6aec35604e9d4f3ddac
Set the thumbnail/screennail sizes based on screensize

Bug: 7232758
Prior to this CL, the thumbnail and screennail sizes were
hardcoded which resulted in mediocre image quality when
using the Gallery in general and the camera filmstrip.
Now, we set the size of these items based on the resolution
of the display. Because high-resolution devices tend to
have higher-performance graphics to drive their large
displays, we expect that this will not introduce any
significant performance impact.

Change-Id: I90e08f7aca670e275c913fd9e21e4459c8bf9fcf
src/com/android/gallery3d/data/ImageCacheService.java
src/com/android/gallery3d/data/MediaItem.java
src/com/android/gallery3d/ui/BitmapScreenNail.java
src/com/android/gallery3d/util/GalleryUtils.java