summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/PhotoFallbackEffect.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-05-18 11:30:26 -0700
committerOwen Lin <owenlin@google.com>2012-05-22 14:28:35 -0700
commit68386e085d3e2338be74996ff99672ff849467cb (patch)
tree74e1bcd78e4c172ecbd04946f1a5c4c624d265fd /src/com/android/gallery3d/ui/PhotoFallbackEffect.java
parentc5c5f2558e9ed3bc46a94c5515481b1dac9ffd77 (diff)
downloadandroid_packages_apps_Snap-68386e085d3e2338be74996ff99672ff849467cb.tar.gz
android_packages_apps_Snap-68386e085d3e2338be74996ff99672ff849467cb.tar.bz2
android_packages_apps_Snap-68386e085d3e2338be74996ff99672ff849467cb.zip
Add a new state uploading to UploadedTexture.
This state means the texture is being uploaded in background and should not be drawn now to prevent janking. Sometimes, we may lose GLContext and we will need to reupload textures again. In this case, we would like to upload these texture in foreground instead of using TextureUploader. (for simplicity since this won't happen too often). bug: 6519344 Change-Id: Ic5d7547c6a0eb4b044b79aa0eb4eb52397faac03
Diffstat (limited to 'src/com/android/gallery3d/ui/PhotoFallbackEffect.java')
-rw-r--r--src/com/android/gallery3d/ui/PhotoFallbackEffect.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoFallbackEffect.java b/src/com/android/gallery3d/ui/PhotoFallbackEffect.java
index cd930bdd3..3ca09ab96 100644
--- a/src/com/android/gallery3d/ui/PhotoFallbackEffect.java
+++ b/src/com/android/gallery3d/ui/PhotoFallbackEffect.java
@@ -87,7 +87,7 @@ public class PhotoFallbackEffect extends Animation implements SlotFilter {
}
private void drawEntry(GLCanvas canvas, Entry entry) {
- if (!entry.texture.isLoaded(canvas)) return;
+ if (!entry.texture.isLoaded()) return;
int w = entry.texture.getWidth();
int h = entry.texture.getHeight();