summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
diff options
context:
space:
mode:
authorYuli Huang <yuli@google.com>2011-10-05 16:22:10 +0800
committerYuli Huang <yuli@google.com>2011-10-05 17:15:25 +0800
commitf94475fb525ef65c40365925da5b5a44ef645c05 (patch)
tree86799c0aabdc89de1d742cb3ddb205a790157663 /src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
parent3807c5774cc60d0a8745d8e396ecc679dc7b7270 (diff)
downloadandroid_packages_apps_Snap-f94475fb525ef65c40365925da5b5a44ef645c05.tar.gz
android_packages_apps_Snap-f94475fb525ef65c40365925da5b5a44ef645c05.tar.bz2
android_packages_apps_Snap-f94475fb525ef65c40365925da5b5a44ef645c05.zip
Fix b/5413887 and b/5389281.
1. Fix b/5413887 by releasing MFF effects as well as release MFF effect-context. 2. Fix b/5389281 by removing photoView.setPhoto(null). Change-Id: I1b848f6c87b03ba2539432fd6d6f13f4ac3a2907
Diffstat (limited to 'src/com/android/gallery3d/photoeditor/filters/FlipFilter.java')
-rw-r--r--src/com/android/gallery3d/photoeditor/filters/FlipFilter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java b/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
index 184f590a3..7035912a5 100644
--- a/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
+++ b/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
@@ -17,7 +17,6 @@
package com.android.gallery3d.photoeditor.filters;
import android.media.effect.Effect;
-import android.media.effect.EffectContext;
import android.media.effect.EffectFactory;
import com.android.gallery3d.photoeditor.Photo;
@@ -37,8 +36,8 @@ public class FlipFilter extends Filter {
}
@Override
- public void process(EffectContext context, Photo src, Photo dst) {
- Effect effect = getEffect(context, EffectFactory.EFFECT_FLIP);
+ public void process(Photo src, Photo dst) {
+ Effect effect = getEffect(EffectFactory.EFFECT_FLIP);
effect.setParameter("horizontal", flipHorizontal);
effect.setParameter("vertical", flipVertical);
effect.apply(src.texture(), src.width(), src.height(), dst.texture());