summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/FilterStack.java
diff options
context:
space:
mode:
authorRuei-sung Lin <rslin@google.com>2012-05-31 11:59:31 -0700
committerRuei-sung Lin <rslin@google.com>2012-06-01 20:14:58 -0700
commite5c8ed74768f16e4e82c46a31d5118788dbb3a57 (patch)
tree64d0c3a699058f100a46b9b3983673d719f19234 /src/com/android/gallery3d/photoeditor/FilterStack.java
parent79b8f0b7dbb65a0dd2c32108688903b8147d35d6 (diff)
downloadandroid_packages_apps_Gallery2-e5c8ed74768f16e4e82c46a31d5118788dbb3a57.tar.gz
android_packages_apps_Gallery2-e5c8ed74768f16e4e82c46a31d5118788dbb3a57.tar.bz2
android_packages_apps_Gallery2-e5c8ed74768f16e4e82c46a31d5118788dbb3a57.zip
Fix b/6590795 dejank photo effect slider
Change-Id: I14737bd01361b58c6bd4af19957d514368cc19ea
Diffstat (limited to 'src/com/android/gallery3d/photoeditor/FilterStack.java')
-rw-r--r--src/com/android/gallery3d/photoeditor/FilterStack.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/photoeditor/FilterStack.java b/src/com/android/gallery3d/photoeditor/FilterStack.java
index fe6fb104d..273c29532 100644
--- a/src/com/android/gallery3d/photoeditor/FilterStack.java
+++ b/src/com/android/gallery3d/photoeditor/FilterStack.java
@@ -118,6 +118,7 @@ public class FilterStack {
reallocateBuffer(out);
}
appliedStack.get(filterIndex).process(input, buffers[out]);
+ nativeEglSetFenceAndWait();
return buffers[out];
}
return null;
@@ -275,4 +276,10 @@ public class FilterStack {
photoView.onResume();
paused = false;
}
+
+ static {
+ System.loadLibrary("jni_eglfence");
+ }
+
+ private native void nativeEglSetFenceAndWait();
}