summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-02-12 18:47:34 (GMT)
committernicolasroard <nicolasroard@google.com>2013-02-12 18:47:34 (GMT)
commit3d3a66695f3d022a71e8b9c77326eb68cd15b31d (patch)
tree514cda60f4ea0206e3e085a8e104d27df120dd0a /src_pd
parentc4816efb49d3e90e37835d9359a6fa8447df97df (diff)
downloadandroid_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.zip
android_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.tar.gz
android_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.tar.bz2
Add reset bitmap for RS filters
Change-Id: I34e28ca72d13f9b5f8054d8a2c07cfffca4e85c6
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
index 446d96d..2a1a6da 100644
--- a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
+++ b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
@@ -112,4 +112,13 @@ public class FiltersManager {
new ImageFilterDownsample(imageLoader));
}
+ public void resetBitmapsRS() {
+ for (Class c : mFilters.keySet()) {
+ ImageFilter filter = mFilters.get(c);
+ if (filter instanceof ImageFilterRS) {
+ ImageFilterRS filterRS = (ImageFilterRS) filter;
+ filterRS.resetBitmap();
+ }
+ }
+ }
}