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)
committerOwen Lin <owenlin@google.com>
Tue, 22 May 2012 16:41:46 +0000 (09:41 -0700)
commit49affdc4e274098a34e4eb2dbe4a89a750f1ba7f
treeefb2aba5dfc4607d8ba8bb210910f3739799bc89
parent21c2e665fdc1d1af0c91ab9c104d13fb7dc2444e
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