diff options
author | nicolasroard <nicolasroard@google.com> | 2013-02-12 10:47:34 -0800 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-02-12 10:47:34 -0800 |
commit | 3d3a66695f3d022a71e8b9c77326eb68cd15b31d (patch) | |
tree | 514cda60f4ea0206e3e085a8e104d27df120dd0a /src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | |
parent | c4816efb49d3e90e37835d9359a6fa8447df97df (diff) | |
download | android_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.tar.gz android_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.tar.bz2 android_packages_apps_Snap-3d3a66695f3d022a71e8b9c77326eb68cd15b31d.zip |
Add reset bitmap for RS filters
Change-Id: I34e28ca72d13f9b5f8054d8a2c07cfffca4e85c6
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index 79c783a94..f5c1e7ff3 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java @@ -33,6 +33,10 @@ public class ImageFilterRS extends ImageFilter { private final Bitmap.Config mBitmapConfig = Bitmap.Config.ARGB_8888; + public void resetBitmap() { + mOldBitmap = null; + } + public void prepare(Bitmap bitmap, float scaleFactor, boolean highQuality) { if (sOldBitmap == null || (bitmap.getWidth() != sOldBitmap.getWidth()) |