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)
commitd0eabeec017489d907b0c7a70d8d0859414c9350
tree0d210484fcac347f23abd0a349ad9a7dc7fca5ff
parentd42fc575814e4135e0b5f339e9b0f21bd9e62de3
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