summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/IconUtilities.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-07-02 13:21:31 -0700
committernicolasroard <nicolasroard@google.com>2013-07-02 13:22:38 -0700
commit6a2491c0afff0243b2174743937ea4be463a22b0 (patch)
treec606911e7993cd6cb4abc152609bf2ed3a620fed /src/com/android/gallery3d/filtershow/filters/IconUtilities.java
parentd3d9e1d480631f9d2edaab326013855b39faa0ca (diff)
downloadandroid_packages_apps_Gallery2-6a2491c0afff0243b2174743937ea4be463a22b0.tar.gz
android_packages_apps_Gallery2-6a2491c0afff0243b2174743937ea4be463a22b0.tar.bz2
android_packages_apps_Gallery2-6a2491c0afff0243b2174743937ea4be463a22b0.zip
Add stop check in ImageFilterFX
speed up switching / interrupting of rendering. Change-Id: I3ef4b1d16047b00a062c86d72cdfff2bfe9817a2
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/IconUtilities.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/IconUtilities.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/IconUtilities.java b/src/com/android/gallery3d/filtershow/filters/IconUtilities.java
index 38211f3c9..e2a01472d 100644
--- a/src/com/android/gallery3d/filtershow/filters/IconUtilities.java
+++ b/src/com/android/gallery3d/filtershow/filters/IconUtilities.java
@@ -64,8 +64,9 @@ public class IconUtilities {
int h = bitmap.getHeight();
int fxw = fxBitmap.getWidth();
int fxh = fxBitmap.getHeight();
-
- nativeApplyFilter(bitmap, w, h, fxBitmap, fxw, fxh);
+ int start = 0;
+ int end = w * h * 4;
+ nativeApplyFilter(bitmap, w, h, fxBitmap, fxw, fxh, start, end);
return bitmap;
}
};