OSDN Git Service

Limit the size of a ScreenNail.
authorOwen Lin <owenlin@google.com>
Mon, 21 May 2012 23:52:25 +0000 (16:52 -0700)
committerThe Android Automerger <android-build@android.com>
Tue, 22 May 2012 19:30:14 +0000 (12:30 -0700)
commit26be5cc3130f273dcb8c79a024a3df43d5ce9e60
treeefb2aba5dfc4607d8ba8bb210910f3739799bc89
parent8248b6caa58ae2e3eefa05510858cfae60a56856
Limit the size of a ScreenNail.

bug:6528366
This bug was happened because we are trying to make a texture beyond the
max size allowed in GL.

Here is what we do in this CL:
1. Limit the size of a screen nail
2. Print warning message, if we try to allocate a texture beyond the size
3. Don't show fall-back animation if the image is not loaded yet.

Change-Id: I004b1138efd0eef7ba11aa89556f67743ca46745
src/com/android/gallery3d/app/PhotoDataAdapter.java
src/com/android/gallery3d/ui/BasicTexture.java
src/com/android/gallery3d/ui/BitmapScreenNail.java
src/com/android/gallery3d/ui/GLRootView.java
src/com/android/gallery3d/ui/PhotoView.java